@@ -99,7 +99,7 @@ function abstract_call_gf_by_type(interp::AbstractInterpreter, @nospecialize(f),
9999 end
100100 this_argtypes = isa (matches, MethodMatches) ? argtypes : matches. applicable_argtypes[i]
101101 this_arginfo = ArgInfo (fargs, this_argtypes)
102- const_result = abstract_call_method_with_const_args (interp, result, f, this_arginfo, match, sv, false )
102+ const_result = abstract_call_method_with_const_args (interp, result, f, this_arginfo, match, sv)
103103 effects = result. edge_effects
104104 if const_result != = nothing
105105 (;rt, effects, const_result) = const_result
@@ -138,7 +138,7 @@ function abstract_call_gf_by_type(interp::AbstractInterpreter, @nospecialize(f),
138138 # this is in preparation for inlining, or improving the return result
139139 this_argtypes = isa (matches, MethodMatches) ? argtypes : matches. applicable_argtypes[i]
140140 this_arginfo = ArgInfo (fargs, this_argtypes)
141- const_result = abstract_call_method_with_const_args (interp, result, f, this_arginfo, match, sv, false )
141+ const_result = abstract_call_method_with_const_args (interp, result, f, this_arginfo, match, sv)
142142 effects = result. edge_effects
143143 if const_result != = nothing
144144 this_rt = const_result. rt
667667
668668function abstract_call_method_with_const_args (interp:: AbstractInterpreter , result:: MethodCallResult ,
669669 @nospecialize (f), arginfo:: ArgInfo , match:: MethodMatch ,
670- sv:: InferenceState , va_override :: Bool )
670+ sv:: InferenceState )
671671 if ! const_prop_enabled (interp, sv, match)
672672 return nothing
673673 end
@@ -705,7 +705,7 @@ function abstract_call_method_with_const_args(interp::AbstractInterpreter, resul
705705 return nothing
706706 end
707707 end
708- inf_result = InferenceResult (mi, (arginfo, sv), va_override )
708+ inf_result = InferenceResult (mi, (arginfo, sv))
709709 if ! any (inf_result. overridden_by_const)
710710 add_remark! (interp, sv, " [constprop] Could not handle constant info in matching_cache_argtypes" )
711711 return nothing
@@ -1457,7 +1457,7 @@ function abstract_invoke(interp::AbstractInterpreter, (; fargs, argtypes)::ArgIn
14571457 # t, a = ti.parameters[i], argtypes′[i]
14581458 # argtypes′[i] = t ⊑ a ? t : a
14591459 # end
1460- const_result = abstract_call_method_with_const_args (interp, result, singleton_type (ft′), arginfo, match, sv, false )
1460+ const_result = abstract_call_method_with_const_args (interp, result, singleton_type (ft′), arginfo, match, sv)
14611461 if const_result != = nothing
14621462 (;rt, const_result) = const_result
14631463 end
@@ -1603,7 +1603,7 @@ function abstract_call_opaque_closure(interp::AbstractInterpreter, closure::Part
16031603 const_result = nothing
16041604 if ! result. edgecycle
16051605 const_result = abstract_call_method_with_const_args (interp, result, nothing ,
1606- arginfo, match, sv, closure . isva )
1606+ arginfo, match, sv)
16071607 if const_result != = nothing
16081608 (;rt, const_result) = const_result
16091609 end
@@ -1619,7 +1619,7 @@ function most_general_argtypes(closure::PartialOpaque)
16191619 if ! isa (argt, DataType) || argt. name != = typename (Tuple)
16201620 argt = Tuple
16211621 end
1622- return most_general_argtypes (closure. source, argt, closure . isva, false )
1622+ return most_general_argtypes (closure. source, argt, false )
16231623end
16241624
16251625# call where the function is any lattice element
@@ -1843,14 +1843,14 @@ function abstract_eval_statement(interp::AbstractInterpreter, @nospecialize(e),
18431843 elseif ehead === :new_opaque_closure
18441844 tristate_merge! (sv, Effects ()) # TODO
18451845 t = Union{}
1846- if length (e. args) >= 5
1846+ if length (e. args) >= 4
18471847 ea = e. args
18481848 argtypes = collect_argtypes (interp, ea, vtypes, sv)
18491849 if argtypes === nothing
18501850 t = Bottom
18511851 else
18521852 t = _opaque_closure_tfunc (argtypes[1 ], argtypes[2 ], argtypes[3 ],
1853- argtypes[4 ], argtypes[5 ], argtypes[ 6 : end ], sv. linfo)
1853+ argtypes[4 ], argtypes[5 : end ], sv. linfo)
18541854 if isa (t, PartialOpaque)
18551855 # Infer this now so that the specialization is available to
18561856 # optimization.
0 commit comments