@@ -315,7 +315,9 @@ function CC.transform_result_for_cache(interp::ADInterpreter,
315
315
end
316
316
317
317
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} )
319
321
# Disallow inlining things away that have an frule
320
322
if isa (info, FRuleCallInfo)
321
323
return nothing
@@ -332,7 +334,9 @@ function CC.inlining_policy(interp::ADInterpreter,
332
334
end
333
335
# the default inlining policy may try additional effor to find the source in a local cache
334
336
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} )
336
340
end
337
341
338
342
# TODO remove this overload once https://github.com/JuliaLang/julia/pull/49191 gets merged
0 commit comments