Skip to content
Commit 221c9a55 authored by Douglas Gregor's avatar Douglas Gregor
Browse files

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>).

llvm-svn: 67452
parent 15f1754e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment