Skip to content

Commit efb888c

Browse files
committed
Add comment
1 parent 3b3e4b7 commit efb888c

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
@@ -2670,6 +2670,8 @@ function abstract_call_known(interp::AbstractInterpreter, @nospecialize(f),
26702670
end
26712671
end
26722672
elseif f === setfield! && length(argtypes) == 4 && isa(argtypes[3], Const)
2673+
# from there on we know that the struct field will never be undefined,
2674+
# so we try to encode that information with a `PartialStruct`
26732675
farg2 = ssa_def_slot(fargs[2], sv)
26742676
if farg2 isa SlotNumber
26752677
refined = form_partially_defined_struct(argtypes[2], argtypes[3])

0 commit comments

Comments
 (0)