aboutsummaryrefslogtreecommitdiff
path: root/src/zig_llvm.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-11-15 22:32:57 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-11-15 22:32:57 -0500
commit3740bfa3bffa4087c8d3fe052c85bbe8d55ffad0 (patch)
tree0b4202d2d9d8e5237f9d2472d553c8090fd1b1d2 /src/zig_llvm.cpp
parenta984040faecab4fed4fc5e36e44d5ec352b7a098 (diff)
downloadzig-3740bfa3bffa4087c8d3fe052c85bbe8d55ffad0.tar.gz
zig-3740bfa3bffa4087c8d3fe052c85bbe8d55ffad0.zip
update fast math flags for latest llvm
Diffstat (limited to 'src/zig_llvm.cpp')
-rw-r--r--src/zig_llvm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp
index 46ac45caff..4ab11875b9 100644
--- 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();