summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2017-02-13 23:49:55 +0000
committerNick Lewycky <nicholas@mxc.ca>2017-02-13 23:49:55 +0000
commit075276218096f0386590a1eaff1e742b4264d75c (patch)
tree6385d4239b3c2fb416741ce100d171b7a4a17c2b /clang/lib/Frontend/InitPreprocessor.cpp
parent47a8b6829c716aaf21b2173e71e05f5ff409cad0 (diff)
downloadbcm5719-llvm-075276218096f0386590a1eaff1e742b4264d75c.tar.gz
bcm5719-llvm-075276218096f0386590a1eaff1e742b4264d75c.zip
When the new expr's array size is an ICE, emit it as a constant expression.
This bypasses integer sanitization checks which are redundant on the expression since it's been checked by Sema. Fixes a clang codegen assertion on "void test() { new int[0+1]{0}; }" when building with -fsanitize=signed-integer-overflow. llvm-svn: 295006
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud