diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-21 18:13:52 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-21 18:13:52 +0000 |
commit | 08457737b60ba2e7f58ecf3062010843268fc6ea (patch) | |
tree | c584d3c46194c45836979123747c8ade3ba6772c /lib/CodeGen/CGDecl.cpp | |
parent | b31cb7f1752ea011fd06ac9574ce24667d11cbdb (diff) |
Fix a thinko in the pre-allocation strategy for structured initializer
lists. The code wasn't accounting for the distinction between the
top-level call to getStructuredSubobjectInit and later calls that
occur deeper in the hierarchy. This problem manifested itself as
over-allocation in cases where we have large arrays of small
structures (<rdar://problem/6707362>).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67452 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
0 files changed, 0 insertions, 0 deletions