Skip to content

Commit

Permalink
Specify argument to FastMathFlags setAllowContract (#9337)
Browse files Browse the repository at this point in the history
  • Loading branch information
slyubomirsky authored Oct 21, 2021
1 parent f4c146c commit 88bf112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/llvm/llvm_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ class LLVMModuleNode final : public runtime::ModuleNode {
Bool fast_math_afn = target->GetAttr<Bool>("fast-math-afn").value_or(Bool(false));
Bool fast_math_reassoc = target->GetAttr<Bool>("fast-math-reassoc").value_or(Bool(false));
if (fast_math_contract) {
fmf.setAllowContract();
fmf.setAllowContract(true);
}
if (fast_math_afn) {
fmf.setApproxFunc();
Expand Down

0 comments on commit 88bf112

Please sign in to comment.