Skip to content

Commit

Permalink
Nofree for math methods
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Dec 7, 2024
1 parent 3b36ea2 commit 56c5f83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3961,6 +3961,9 @@ end
lowerConvention = false
end
k_name = LLVM.name(llvmfn)
if !has_fn_attribute(llvmfn, EnumAttribute("nofree"))
push!(LLVM.function_attributes(llvmfn), EnumAttribute("nofree"))
end
end

name = string(name)
Expand Down

0 comments on commit 56c5f83

Please sign in to comment.