@@ -99,7 +99,7 @@ function abstract_call_gf_by_type(interp::AbstractInterpreter, @nospecialize(f),
99
99
end
100
100
this_argtypes = isa (matches, MethodMatches) ? argtypes : matches. applicable_argtypes[i]
101
101
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)
103
103
effects = result. edge_effects
104
104
if const_result != = nothing
105
105
(;rt, effects, const_result) = const_result
@@ -138,7 +138,7 @@ function abstract_call_gf_by_type(interp::AbstractInterpreter, @nospecialize(f),
138
138
# this is in preparation for inlining, or improving the return result
139
139
this_argtypes = isa (matches, MethodMatches) ? argtypes : matches. applicable_argtypes[i]
140
140
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)
142
142
effects = result. edge_effects
143
143
if const_result != = nothing
144
144
this_rt = const_result. rt
667
667
668
668
function abstract_call_method_with_const_args (interp:: AbstractInterpreter , result:: MethodCallResult ,
669
669
@nospecialize (f), arginfo:: ArgInfo , match:: MethodMatch ,
670
- sv:: InferenceState , va_override :: Bool )
670
+ sv:: InferenceState )
671
671
if ! const_prop_enabled (interp, sv, match)
672
672
return nothing
673
673
end
@@ -705,7 +705,7 @@ function abstract_call_method_with_const_args(interp::AbstractInterpreter, resul
705
705
return nothing
706
706
end
707
707
end
708
- inf_result = InferenceResult (mi, (arginfo, sv), va_override )
708
+ inf_result = InferenceResult (mi, (arginfo, sv))
709
709
if ! any (inf_result. overridden_by_const)
710
710
add_remark! (interp, sv, " [constprop] Could not handle constant info in matching_cache_argtypes" )
711
711
return nothing
@@ -1457,7 +1457,7 @@ function abstract_invoke(interp::AbstractInterpreter, (; fargs, argtypes)::ArgIn
1457
1457
# t, a = ti.parameters[i], argtypes′[i]
1458
1458
# argtypes′[i] = t ⊑ a ? t : a
1459
1459
# 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)
1461
1461
if const_result != = nothing
1462
1462
(;rt, const_result) = const_result
1463
1463
end
@@ -1603,7 +1603,7 @@ function abstract_call_opaque_closure(interp::AbstractInterpreter, closure::Part
1603
1603
const_result = nothing
1604
1604
if ! result. edgecycle
1605
1605
const_result = abstract_call_method_with_const_args (interp, result, nothing ,
1606
- arginfo, match, sv, closure . isva )
1606
+ arginfo, match, sv)
1607
1607
if const_result != = nothing
1608
1608
(;rt, const_result) = const_result
1609
1609
end
@@ -1619,7 +1619,7 @@ function most_general_argtypes(closure::PartialOpaque)
1619
1619
if ! isa (argt, DataType) || argt. name != = typename (Tuple)
1620
1620
argt = Tuple
1621
1621
end
1622
- return most_general_argtypes (closure. source, argt, closure . isva, false )
1622
+ return most_general_argtypes (closure. source, argt, false )
1623
1623
end
1624
1624
1625
1625
# call where the function is any lattice element
@@ -1843,14 +1843,14 @@ function abstract_eval_statement(interp::AbstractInterpreter, @nospecialize(e),
1843
1843
elseif ehead === :new_opaque_closure
1844
1844
tristate_merge! (sv, Effects ()) # TODO
1845
1845
t = Union{}
1846
- if length (e. args) >= 5
1846
+ if length (e. args) >= 4
1847
1847
ea = e. args
1848
1848
argtypes = collect_argtypes (interp, ea, vtypes, sv)
1849
1849
if argtypes === nothing
1850
1850
t = Bottom
1851
1851
else
1852
1852
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)
1854
1854
if isa (t, PartialOpaque)
1855
1855
# Infer this now so that the specialization is available to
1856
1856
# optimization.
0 commit comments