[AST] Refine the condition for element-dependent array fillers
ClosedPublic

Authored by kosarev on Feb 12 2018, 6:25 AM.

Details

Summary

This patch fixes clang to not consider braced initializers for aggregate elements of arrays to be potentially dependent on the indices of the initialized elements. Resolves bug 18978:
initialize a large static array = clang oom?
https://bugs.llvm.org/show_bug.cgi?id=18978

Diff Detail

Repository
rL LLVM
kosarev created this revision.Feb 12 2018, 6:25 AM

John, maybe you can review this or suggest some other reviewers? Thanks.

This revision is now accepted and ready to land.Feb 13 2018, 10:52 AM
This revision was automatically updated to reflect the committed changes.