Skip to content

Commit ce747fe

Browse files
authored
Compiler: abstract calls: type assert to help stability (#57582)
1 parent 1431bec commit ce747fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Compiler/src/abstractinterpretation.jl

+2
Original file line numberDiff line numberDiff line change
@@ -2622,6 +2622,8 @@ function abstract_call_known(interp::AbstractInterpreter, @nospecialize(f),
26222622
arginfo::ArgInfo, si::StmtInfo, sv::AbsIntState,
26232623
max_methods::Int = get_max_methods(interp, f, sv))
26242624
(; fargs, argtypes) = arginfo
2625+
argtypes::Vector{Any} = arginfo.argtypes # declare type because the closure below captures `argtypes`
2626+
fargs = arginfo.fargs
26252627
la = length(argtypes)
26262628
𝕃ᵢ = typeinf_lattice(interp)
26272629
if isa(f, Builtin)

0 commit comments

Comments
 (0)