Skip to content

Commit 88bf112

Browse files
authored
Specify argument to FastMathFlags setAllowContract (#9337)
1 parent f4c146c commit 88bf112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/target/llvm/llvm_module.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ class LLVMModuleNode final : public runtime::ModuleNode {
292292
Bool fast_math_afn = target->GetAttr<Bool>("fast-math-afn").value_or(Bool(false));
293293
Bool fast_math_reassoc = target->GetAttr<Bool>("fast-math-reassoc").value_or(Bool(false));
294294
if (fast_math_contract) {
295-
fmf.setAllowContract();
295+
fmf.setAllowContract(true);
296296
}
297297
if (fast_math_afn) {
298298
fmf.setApproxFunc();

0 commit comments

Comments
 (0)