@@ -315,7 +315,9 @@ function CC.transform_result_for_cache(interp::ADInterpreter,
315315end
316316
317317function 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} )
336340end
337341
338342# TODO remove this overload once https://github.com/JuliaLang/julia/pull/49191 gets merged
0 commit comments