Skip to content

Commit

Permalink
Adapt to pointer change.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Apr 16, 2024
1 parent cb736ee commit edf42ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/driver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,12 @@ const __llvm_initialized = Ref(false)
for call in worklist[dyn_job]
@dispose builder=IRBuilder() begin
position!(builder, call)
fptr = ptrtoint!(builder, dyn_entry, T_ptr)
fptr = if VERSION >= v"1.12.0-DEV.225"
T_ptr = LLVM.PointerType(LLVM.Int8Type())
bitcast!(builder, dyn_entry, T_ptr)
else
ptrtoint!(builder, dyn_entry, T_ptr)
end
replace_uses!(call, fptr)
end
unsafe_delete!(LLVM.parent(call), call)
Expand Down

0 comments on commit edf42ab

Please sign in to comment.