From 0bcbaa486e5de8de8794015c029eb22c5a5895c2 Mon Sep 17 00:00:00 2001 From: "Steven S. Lyubomirsky" Date: Wed, 20 Oct 2021 22:24:32 -0700 Subject: [PATCH] Specify argument to FastMathFlags setAllowContract --- src/target/llvm/llvm_module.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();