aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Error.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-09-10 21:24:09 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-09-10 21:24:09 +0000
commit045b2270ceba0ad785cf27beb05dd59ce10372f6 (patch)
tree6ce165e8759f68105b728b5124d896a603b561bd /llvm/lib/Support/Error.cpp
parent1e1db800487cbaf96e8f7809e3df42ba979c121d (diff)
downloadllvm-045b2270ceba0ad785cf27beb05dd59ce10372f6.zip
llvm-045b2270ceba0ad785cf27beb05dd59ce10372f6.tar.gz
llvm-045b2270ceba0ad785cf27beb05dd59ce10372f6.tar.bz2
When evaluating a __builtin_constant_p conditional, always enter
constant-folding mode regardless of the original evaluation mode. In order for this to be correct, we need to track whether we're checking for a potential constant expression or checking for undefined behavior separately from the evaluation mode enum, since we don't want to clobber those states when entering constant-folding mode. llvm-svn: 371557
Diffstat (limited to 'llvm/lib/Support/Error.cpp')
0 files changed, 0 insertions, 0 deletions