commit | 5b5ad8453c8e79f642c3ddfeeadf162ae67309c0 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Tue Dec 22 17:13:37 2009 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Tue Dec 22 17:13:37 2009 +0000 |
tree | 3c6a7ffc083fd4f0065a60957c1e25a17f1d5e81 | |
parent | a188ff2d8a18140541fcd5884deda4552dac71a7 [diff] |
When transforming a C++ "new" expression that was not explicitly given a size, check whether the transformed type is itself an array type. If so, take the major array bound as the size to allocate. Fixes PR5833. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91907 91177308-0d34-0410-b5e6-96231b3b80d8