diff options
author | Richard Smith <richard@metafoo.co.uk> | 2020-10-15 16:50:13 -0700 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2020-10-15 16:58:47 -0700 |
commit | fc031d29bea856f2b91a250fd81c5f9fb79dbe07 (patch) | |
tree | eb3d14002d76f6ba6f2913ccaf76d4ad2f74ad4a /llvm/lib/Support/TargetParser.cpp | |
parent | 2bf423b0218c9583e3a372950a34facbf93e63d3 (diff) | |
download | llvm-fc031d29bea856f2b91a250fd81c5f9fb79dbe07.zip llvm-fc031d29bea856f2b91a250fd81c5f9fb79dbe07.tar.gz llvm-fc031d29bea856f2b91a250fd81c5f9fb79dbe07.tar.bz2 |
Switch the default of VerifyIntegerConstantExpression from constant
folding to not constant folding.
Constant folding of ICEs is done as a GCC compatibility measure, but new
code was picking it up, presumably by accident, due to the bad default.
While here, also switch the flag from a bool to an enum to make it more
obvious what it means at call sites. This highlighted a couple of places
where our behavior is different between C++11 and C++14 due to switching
from checking for an ICE to checking for a converted constant
expression (where there is no 'fold' codepath).
Diffstat (limited to 'llvm/lib/Support/TargetParser.cpp')
0 files changed, 0 insertions, 0 deletions