Skip to content

Commit 3b3e4b7

Browse files
committed
Don't add SlotRefinement if type is not refined
1 parent 0cca8e9 commit 3b3e4b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Compiler/src/abstractinterpretation.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2673,7 +2673,9 @@ function abstract_call_known(interp::AbstractInterpreter, @nospecialize(f),
26732673
farg2 = ssa_def_slot(fargs[2], sv)
26742674
if farg2 isa SlotNumber
26752675
refined = form_partially_defined_struct(argtypes[2], argtypes[3])
2676-
refinements = SlotRefinement(farg2, refined)
2676+
if refined !== nothing
2677+
refinements = SlotRefinement(farg2, refined)
2678+
end
26772679
end
26782680
end
26792681
end

0 commit comments

Comments
 (0)