Skip to content

Commit edf42ab

Browse files
committed
Adapt to pointer change.
1 parent cb736ee commit edf42ab

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/driver.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,12 @@ const __llvm_initialized = Ref(false)
275275
for call in worklist[dyn_job]
276276
@dispose builder=IRBuilder() begin
277277
position!(builder, call)
278-
fptr = ptrtoint!(builder, dyn_entry, T_ptr)
278+
fptr = if VERSION >= v"1.12.0-DEV.225"
279+
T_ptr = LLVM.PointerType(LLVM.Int8Type())
280+
bitcast!(builder, dyn_entry, T_ptr)
281+
else
282+
ptrtoint!(builder, dyn_entry, T_ptr)
283+
end
279284
replace_uses!(call, fptr)
280285
end
281286
unsafe_delete!(LLVM.parent(call), call)

0 commit comments

Comments
 (0)