| commit | d976761070f3bda153c60b81f0d3438cd8fd39c3 | [log] [tgz] |
|---|---|---|
| author | Anders Carlsson <andersca@mac.com> | Sat Dec 20 20:46:34 2008 +0000 |
| committer | Anders Carlsson <andersca@mac.com> | Sat Dec 20 20:46:34 2008 +0000 |
| tree | 3611941b067ec799cddd5b4d12c2cdb370b795d2 | |
| parent | f860e028bd1b70cac706e877297ed416aa96222b [diff] |
Change EmitVLASize to take a QualType that must be a variably modified type.
Emit the size even if the declared type is a variably modified type. This lets us handle
void f(int n) {
int (*a)[n];
printf("size: %d\n", sizeof(*a));
}
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61285 91177308-0d34-0410-b5e6-96231b3b80d8