diff options
author | Sam McCall <sam.mccall@gmail.com> | 2022-06-28 01:13:04 +0200 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2022-06-28 15:45:41 +0200 |
commit | 8cf28585a40311163a08840beee035097638d41d (patch) | |
tree | 3df9ba68de6a06b2c3afe3562476fcf9cc769572 /llvm/lib/CodeGen/LocalStackSlotAllocation.cpp | |
parent | f1cfaa956def453c2df086ce38665a2669246e5d (diff) | |
download | llvm-8cf28585a40311163a08840beee035097638d41d.zip llvm-8cf28585a40311163a08840beee035097638d41d.tar.gz llvm-8cf28585a40311163a08840beee035097638d41d.tar.bz2 |
[pseudo] Allow mixed designated/undesignated init lists.
This isn't allowed by the standard grammar but is allowed in C, and clang/GCC
permit it as an extension.
It avoids the need to determine which type of list we have in error-recovery.
While here, also support array index designators `{ [4]=1 }` which are
also legal in C, and common extensions in C++.
Differential Revision: https://reviews.llvm.org/D128687
Diffstat (limited to 'llvm/lib/CodeGen/LocalStackSlotAllocation.cpp')
0 files changed, 0 insertions, 0 deletions