Skip to content

Commit

Permalink
make inlining work on 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Jul 14, 2024
1 parent 82de09c commit 1b2439d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jlgen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,9 @@ function CC.abstract_call_known(interp::AbstractGPUInterpreter, @nospecialize(f)
end

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

minfo = info.info
Expand Down

0 comments on commit 1b2439d

Please sign in to comment.