diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2017-02-13 23:49:55 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2017-02-13 23:49:55 +0000 |
commit | 075276218096f0386590a1eaff1e742b4264d75c (patch) | |
tree | 6385d4239b3c2fb416741ce100d171b7a4a17c2b /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 47a8b6829c716aaf21b2173e71e05f5ff409cad0 (diff) | |
download | bcm5719-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