Skip to content

Commit 76f941b

Browse files
committed
change call to codeinfo_for_const to work on newer nightlies
1 parent 6481ad9 commit 76f941b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/jlgen.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,11 @@ function ci_cache_populate(interp, cache, mi, min_world, max_world)
589589
# now make sure everything has source code, if desired
590590
mi = CC.get_ci_mi(callee)
591591
if CC.use_const_api(callee)
592-
src = CC.codeinfo_for_const(interp, mi, ci.rettype_const)
592+
if VERSION >= v"1.13.0-DEV.1121"
593+
src = CC.codeinfo_for_const(interp, mi, CC.WorldRange(callee.min_world, callee.max_world), callee.edges, callee.rettype_const)
594+
else
595+
src = CC.codeinfo_for_const(interp, mi, callee.rettype_const)
596+
end
593597
else
594598
# TODO: typeinf_code could return something with different edges/ages/owner/abi (needing an update to callee), which we don't handle here
595599
src = CC.typeinf_code(interp, mi, true)

0 commit comments

Comments
 (0)