Skip to content

Commit 7a9e9ba

Browse files
authored
1 parent 3b4e59f commit 7a9e9ba

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/stage2/interpreter.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,9 @@ function CC.transform_result_for_cache(interp::ADInterpreter,
315315
end
316316

317317
function CC.inlining_policy(interp::ADInterpreter,
318-
@nospecialize(src), @nospecialize(info::CC.CallInfo), stmt_flag::UInt8, mi::MethodInstance, argtypes::Vector{Any})
318+
@nospecialize(src), @nospecialize(info::CC.CallInfo),
319+
stmt_flag::(@static VERSION ≥ v"1.11.0-DEV.377" ? UInt32 : UInt8),
320+
mi::MethodInstance, argtypes::Vector{Any})
319321
# Disallow inlining things away that have an frule
320322
if isa(info, FRuleCallInfo)
321323
return nothing
@@ -332,7 +334,9 @@ function CC.inlining_policy(interp::ADInterpreter,
332334
end
333335
# the default inlining policy may try additional effor to find the source in a local cache
334336
return @invoke CC.inlining_policy(interp::AbstractInterpreter,
335-
nothing, info::CC.CallInfo, stmt_flag::UInt8, mi::MethodInstance, argtypes::Vector{Any})
337+
nothing, info::CC.CallInfo,
338+
stmt_flag::(@static VERSION ≥ v"1.11.0-DEV.377" ? UInt32 : UInt8),
339+
mi::MethodInstance, argtypes::Vector{Any})
336340
end
337341

338342
# TODO remove this overload once https://github.com/JuliaLang/julia/pull/49191 gets merged

0 commit comments

Comments
 (0)