Skip to content

Commit 6139d7c

Browse files
committed
per aviatesk
1 parent 9c48b94 commit 6139d7c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Compiler/src/abstractinterpretation.jl

+4-2
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,7 @@ end
19561956
function abstract_call_builtin(interp::AbstractInterpreter, f::Builtin, (; fargs, argtypes)::ArgInfo,
19571957
sv::AbsIntState)
19581958
@nospecialize f
1959-
la = length(argtypes)::Int
1959+
la = length(argtypes)
19601960
𝕃ᵢ = typeinf_lattice(interp)
19611961
, , , = partialorder(𝕃ᵢ), strictpartialorder(𝕃ᵢ), join(𝕃ᵢ), meet(𝕃ᵢ)
19621962
if has_conditional(𝕃ᵢ, sv) && f === Core.ifelse && fargs isa Vector{Any} && la == 4
@@ -2622,7 +2622,9 @@ 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-
la = length(argtypes)::Int
2625+
argtypes::Vector{Any} = arginfo.argtypes # declare type because the closure below captures it
2626+
fargs = arginfo.fargs
2627+
la = length(argtypes)
26262628
𝕃ᵢ = typeinf_lattice(interp)
26272629
if isa(f, Builtin)
26282630
if f === _apply_iterate

0 commit comments

Comments
 (0)