summaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-11-06 16:27:36 +0000
committerSanjay Patel <spatel@rotateright.com>2017-11-06 16:27:36 +0000
commit157a622d78eb0e71dcef8ec08ebed2d20ca1772f (patch)
tree1cee2ba08b564a6db0f4eb43514245a28a272721 /lib/CodeGen
parent0064a0c5f1b24a34a81c8e0fc84b355a6ad8555d (diff)
downloadclang-157a622d78eb0e71dcef8ec08ebed2d20ca1772f.tar.gz
[CodeGen] match new fast-math-flag method: isFast()
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/CodeGenFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index 234d1a2849..3b60b996ca 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/lib/CodeGen/CodeGenFunction.cpp
@@ -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();