aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard@metafoo.co.uk>2020-10-13 19:14:13 -0700
committerRichard Smith <richard@metafoo.co.uk>2020-10-16 13:26:15 -0700
commit7e801ca0efa99f7cec7a2aea30513ad282030b51 (patch)
treeeb5c8a0d9c892bd88ba55e1b96395112ff63ef8a /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent48c70c1664aa4512cb7e08352dd8eb33dde4807c (diff)
downloadllvm-7e801ca0efa99f7cec7a2aea30513ad282030b51.zip
llvm-7e801ca0efa99f7cec7a2aea30513ad282030b51.tar.gz
llvm-7e801ca0efa99f7cec7a2aea30513ad282030b51.tar.bz2
Treat constant contexts as being in the default rounding mode.
This addresses a regression where pretty much all C++ compilations using -frounding-math now fail, due to rounding being performed in constexpr function definitions in the standard library. This follows the "manifestly constant evaluated" approach described in https://reviews.llvm.org/D87528#2270676 -- evaluations that are required to succeed at compile time are permitted even in regions with dynamic rounding modes, as are (unfortunately) the evaluation of the initializers of local variables of const integral types. Differential Revision: https://reviews.llvm.org/D89360
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions