summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
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
commit401aaee300cef5e1cc1f7492ae19167f8edc7832 (patch)
tree078419c7f120f36440d2895b3bd741b3511c4544 /clang/lib/CodeGen/CodeGenFunction.cpp
parent629c41153876b18e4c35b82dd7d410e35d79ea56 (diff)
downloadbcm5719-llvm-401aaee300cef5e1cc1f7492ae19167f8edc7832.tar.gz
bcm5719-llvm-401aaee300cef5e1cc1f7492ae19167f8edc7832.zip
[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. llvm-svn: 317489
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 234d1a2849d..3b60b996ca1 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud