Fix fp-model flag test failure on linux

We're still in the awkward state where IEEE is not the default
denormal mode.
This commit is contained in:
Matt Arsenault 2020-02-12 10:12:50 -08:00
parent 53fba65d22
commit 5dcffdf58a
1 changed files with 2 additions and 1 deletions

View File

@ -2771,7 +2771,8 @@ static void RenderFloatingPointOptions(const ToolChain &TC, const Driver &D,
if (HonorINFs && HonorNaNs &&
!AssociativeMath && !ReciprocalMath &&
SignedZeros && TrappingMath && RoundingFPMath &&
DenormalFPMath != llvm::DenormalMode::getIEEE() &&
// FIXME: This should check for IEEE when it's the default.
DenormalFPMath != llvm::DenormalMode::getInvalid() &&
FPContract.equals("off"))
// OK: Current Arg doesn't conflict with -ffp-model=strict
;