Skip to content

Commit c17e222

Browse files
committed
Add comment
1 parent 445bb04 commit c17e222

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Compiler/src/abstractinterpretation.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2675,6 +2675,8 @@ function abstract_call_known(interp::AbstractInterpreter, @nospecialize(f),
26752675
end
26762676
end
26772677
elseif f === setfield! && length(argtypes) == 4 && isa(argtypes[3], Const)
2678+
# from there on we know that the struct field will never be undefined,
2679+
# so we try to encode that information with a `PartialStruct`
26782680
farg2 = ssa_def_slot(fargs[2], sv)
26792681
if farg2 isa SlotNumber
26802682
refined = form_partially_defined_struct(argtypes[2], argtypes[3])

0 commit comments

Comments
 (0)