aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorEli Friedman <efriedma@quicinc.com>2021-03-10 10:51:00 -0800
committerEli Friedman <efriedma@quicinc.com>2021-04-14 17:09:59 -0700
commitdc1ab590a0527533815aeed0100de54a5f4a4829 (patch)
treef583c6402b05d0be51bf29915b157a9a8534afd0 /llvm/tools/llvm-objdump/llvm-objdump.cpp
parentdd985551c247752ee2be71f04a141225a40641ef (diff)
downloadllvm-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