mirror of
https://github.com/ziglang/zig.git
synced 2026-02-03 13:13:40 +00:00
update fast math flags for latest llvm
This commit is contained in:
parent
a984040fae
commit
3740bfa3bf
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user