From 2fa5bb1352e9771d5f42ae5e054dd459e8af5409 Mon Sep 17 00:00:00 2001 From: William Moses Date: Fri, 6 Dec 2024 19:19:44 -0600 Subject: [PATCH] Nofree for math methods (#2184) * Nofree for math methods * fix --- src/compiler.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler.jl b/src/compiler.jl index 5fcc53dbde..0155e5da34 100644 --- a/src/compiler.jl +++ b/src/compiler.jl @@ -3961,6 +3961,9 @@ end lowerConvention = false end k_name = LLVM.name(llvmfn) + if !has_fn_attr(llvmfn, EnumAttribute("nofree")) + push!(LLVM.function_attributes(llvmfn), EnumAttribute("nofree")) + end end name = string(name)