forked from OSchip/llvm-project
[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
This commit is contained in:
parent
629c411538
commit
401aaee300
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue