Skip to content

Commit ac56f91

Browse files
committed
Add a little tiny comment to AccessEnforcementSelection.
1 parent 22697aa commit ac56f91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/SILOptimizer/Mandatory/AccessEnforcementSelection.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ void SelectEnforcement::analyzeUsesOfBox(SILInstruction *source) {
236236
isa<DeallocBoxInst>(user))
237237
continue;
238238

239-
// Treat everything else as an escape:
239+
// Treat everything else as an escape.
240+
// A Box typically escapes via copy_value.
240241
noteEscapingUse(user);
241242
}
242243
// Accesses may still be empty if the user of the Box is a partial apply

0 commit comments

Comments
 (0)