commit 3740bfa3bffa4087c8d3fe052c85bbe8d55ffad0 (tree)
parent a984040faecab4fed4fc5e36e44d5ec352b7a098
Author: Andrew Kelley <superjoe30@gmail.com>
Date: Wed, 15 Nov 2017 22:32:57 -0500
update fast math flags for latest llvm
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/zig_llvm.cpp b/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();