Skip to content

Commit 958bec7

Browse files
committed
make inlining work on 1.11
1 parent cca8cfb commit 958bec7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jlgen.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,9 @@ function CC.abstract_call_known(interp::AbstractGPUInterpreter, @nospecialize(f)
461461
end
462462

463463
# Use the Inlining infrastructure to perform our refinement
464-
# TODO: @aviatesk This is not reached on 1.11
464+
const FlagType = VERSION >= v"1.11.0-" ? UInt32 : UInt8
465465
function CC.handle_call!(todo::Vector{Pair{Int,Any}},
466-
ir::CC.IRCode, idx::CC.Int, stmt::Expr, info::DeferredCallInfo, flag::UInt8, sig::CC.Signature,
466+
ir::CC.IRCode, idx::CC.Int, stmt::Expr, info::DeferredCallInfo, flag::FlagType, sig::CC.Signature,
467467
state::CC.InliningState)
468468

469469
minfo = info.info

0 commit comments

Comments
 (0)