commit | 60d35413662ebdcd1d31e34a8a7c665eb6977f1e | [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 | f666b7780d04186521adcaedb0e15dfa4d5e6933 [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