Skip to content

Commit 1b2439d

Browse files
committed
make inlining work on 1.11
1 parent 82de09c commit 1b2439d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jlgen.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,9 +486,9 @@ function CC.abstract_call_known(interp::AbstractGPUInterpreter, @nospecialize(f)
486486
end
487487

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

494494
minfo = info.info

0 commit comments

Comments
 (0)