diff --git a/base/compiler/ssair/inlining2.jl b/base/compiler/ssair/inlining2.jl index 73d9a21695de9e..507af92f1cacf2 100644 --- a/base/compiler/ssair/inlining2.jl +++ b/base/compiler/ssair/inlining2.jl @@ -756,7 +756,7 @@ function assemble_inline_todo!(ir::IRCode, linetable::Vector{LineInfoNode}, sv:: for tuparg in ir[def].args[2:end] push!(new_atypes, exprtype(tuparg, ir, ir.mod)) end - elseif isa(def, Argument) && def === stmt.args[end] && def.n === length(ir.argtypes) && !isempty(sv.result_vargs) + elseif isa(def, Argument) && def.n === length(ir.argtypes) && !isempty(sv.result_vargs) append!(new_atypes, sv.result_vargs) else append!(new_atypes, typ.parameters)