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)