@@ -367,7 +367,7 @@ function optimize(me::InferenceState)
367367
368368 if proven_pure && ! coverage_enabled ()
369369 # use constant calling convention
370- # Do not emit `jlcall_api == 2 ` if coverage is enabled
370+ # Do not emit `jl_fptr_const_return ` if coverage is enabled
371371 # so that we don't need to add coverage support
372372 # to the `jl_call_method_internal` fast path
373373 # Still set pure flag to make sure `inference` tests pass
@@ -438,7 +438,7 @@ function finish(me::InferenceState)
438438 end
439439
440440 # don't store inferred code if we've decided to interpret this function
441- if ! already_inferred && me. linfo. jlcall_api != 4
441+ if ! already_inferred && invoke_api ( me. linfo) != 4
442442 const_flags = (me. const_ret) << 1 | me. const_api
443443 if me. const_ret
444444 if isa (me. bestguess, Const)
@@ -1320,7 +1320,7 @@ function inlineable(@nospecialize(f), @nospecialize(ft), e::Expr, atypes::Vector
13201320 isa (linfo, MethodInstance) || return invoke_NF (argexprs0, e. typ, atypes0, sv,
13211321 atype_unlimited, invoke_data)
13221322 linfo = linfo:: MethodInstance
1323- if linfo. jlcall_api == 2
1323+ if invoke_api ( linfo) == 2
13241324 # in this case function can be inlined to a constant
13251325 add_backedge! (linfo, sv)
13261326 return inline_as_constant (linfo. inferred_const, argexprs, sv, invoke_data)
0 commit comments