]> granicus.if.org Git - clang/commitdiff
[CodeGen] match new fast-math-flag method: isFast()
authorSanjay Patel <spatel@rotateright.com>
Mon, 6 Nov 2017 16:27:36 +0000 (16:27 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 6 Nov 2017 16:27:36 +0000 (16:27 +0000)
This corresponds to LLVM commiti r317488:

If that commit is reverted, this commit will also need to be reverted.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317489 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenFunction.cpp

index 234d1a2849d3a6f8f88d2d2b5420d1200e02ceed..3b60b996ca19bdd647f95d1f03d10008a2c1effc 100644 (file)
@@ -87,7 +87,7 @@ CodeGenFunction::CodeGenFunction(CodeGenModule &cgm, bool suppressNewContext)
 
   llvm::FastMathFlags FMF;
   if (CGM.getLangOpts().FastMath)
-    FMF.setUnsafeAlgebra();
+    FMF.setFast();
   if (CGM.getLangOpts().FiniteMathOnly) {
     FMF.setNoNaNs();
     FMF.setNoInfs();