@@ -691,8 +691,7 @@ function edge_matches_sv(interp::AbstractInterpreter, frame::AbsIntState,
691691 # necessary in order to retrieve this field from the generated `CodeInfo`, if it exists.
692692 # The other `CodeInfo`s we inspect will already have this field inflated, so we just
693693 # access it directly instead (to avoid regeneration).
694- world = get_world_counter (interp)
695- callee_method2 = method_for_inference_heuristics (method, sig, sparams, world) # Union{Method, Nothing}
694+ callee_method2 = method_for_inference_heuristics (method, sig, sparams) # Union{Method, Nothing}
696695
697696 inf_method2 = method_for_inference_limit_heuristics (frame) # limit only if user token match
698697 inf_method2 isa Method || (inf_method2 = nothing )
@@ -728,11 +727,11 @@ function edge_matches_sv(interp::AbstractInterpreter, frame::AbsIntState,
728727end
729728
730729# This function is used for computing alternate limit heuristics
731- function method_for_inference_heuristics (method:: Method , @nospecialize (sig), sparams:: SimpleVector , world :: UInt )
732- if isdefined (method, :generator ) && ! ( method. generator isa Core . GeneratedFunctionStub) && may_invoke_generator (method, sig, sparams)
730+ function method_for_inference_heuristics (method:: Method , @nospecialize (sig), sparams:: SimpleVector )
731+ if isdefined (method, :generator ) && method. generator. expand_early && may_invoke_generator (method, sig, sparams)
733732 method_instance = specialize_method (method, sig, sparams)
734733 if isa (method_instance, MethodInstance)
735- cinfo = get_staged (method_instance, world )
734+ cinfo = get_staged (method_instance)
736735 if isa (cinfo, CodeInfo)
737736 method2 = cinfo. method_for_inference_limit_heuristics
738737 if method2 isa Method
0 commit comments