diff --git a/src/target/llvm/llvm_module.cc b/src/target/llvm/llvm_module.cc index 657778df0e93..86079b25aa90 100644 --- a/src/target/llvm/llvm_module.cc +++ b/src/target/llvm/llvm_module.cc @@ -292,7 +292,7 @@ class LLVMModuleNode final : public runtime::ModuleNode { Bool fast_math_afn = target->GetAttr("fast-math-afn").value_or(Bool(false)); Bool fast_math_reassoc = target->GetAttr("fast-math-reassoc").value_or(Bool(false)); if (fast_math_contract) { - fmf.setAllowContract(); + fmf.setAllowContract(true); } if (fast_math_afn) { fmf.setApproxFunc();