Skip to content

Commit de62426

Browse files
committed
Eagerly remove fptr wrappers.
1 parent cc77b90 commit de62426

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/irgen.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ function irgen(@nospecialize(job::CompilerJob), method_instance::Core.MethodInst
1515
if Sys.iswindows()
1616
personality!(llvmf, nothing)
1717
end
18+
19+
# remove the non-specialized jfptr functions
20+
if startswith(LLVM.name(llvmf), "jfptr_")
21+
unsafe_delete!(mod, llvmf)
22+
end
1823
end
1924

2025
# remove the exception-handling personality function

0 commit comments

Comments
 (0)