Commit 3740bfa3bf

Andrew Kelley <superjoe30@gmail.com>
2017-11-16 04:32:57
update fast math flags for latest llvm
1 parent a984040
Changed files (1)
src/zig_llvm.cpp
@@ -577,7 +577,7 @@ ZigLLVMDILocation *ZigLLVMGetDebugLoc(unsigned line, unsigned col, ZigLLVMDIScop
 void ZigLLVMSetFastMath(LLVMBuilderRef builder_wrapped, bool on_state) {
     if (on_state) {
         FastMathFlags fmf;
-        fmf.setUnsafeAlgebra();
+        fmf.setFast();
         unwrap(builder_wrapped)->setFastMathFlags(fmf);
     } else {
         unwrap(builder_wrapped)->clearFastMathFlags();