diff options
author | Eli Friedman <efriedma@quicinc.com> | 2021-03-10 10:51:00 -0800 |
---|---|---|
committer | Eli Friedman <efriedma@quicinc.com> | 2021-04-14 17:09:59 -0700 |
commit | dc1ab590a0527533815aeed0100de54a5f4a4829 (patch) | |
tree | f583c6402b05d0be51bf29915b157a9a8534afd0 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | dd985551c247752ee2be71f04a141225a40641ef (diff) | |
download | llvm-dc1ab590a0527533815aeed0100de54a5f4a4829.zip llvm-dc1ab590a0527533815aeed0100de54a5f4a4829.tar.gz llvm-dc1ab590a0527533815aeed0100de54a5f4a4829.tar.bz2 |
[Sema] Fold VLA types in compound literals to constant arrays.
Similar to variables with an initializer, this is never valid in
standard C, so we can safely constant-fold as an extension. I ran into
this construct in a couple proprietary codebases.
While I'm here, drive-by fix for 090dd647: we should only fold variables
with VLA types, not arbitrary variably modified types.
Differential Revision: https://reviews.llvm.org/D98363
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions