Skip to content

Commit 665505b

Browse files
committed
Comment: InteriorPointerOperand needs to handle project_box
1 parent 5928958 commit 665505b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/swift/SIL/OwnershipUtils.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,9 @@ class InteriorPointerOperandKind {
712712
/// object with guaranteed ownership. All transitive address uses of the
713713
/// interior pointer must be within the lifetime of the guaranteed lifetime. As
714714
/// such, these must be treated as implicit uses of the parent guaranteed value.
715+
///
716+
/// FIXME: This should probably also handle project_box once we support
717+
/// borrowing a box.
715718
struct InteriorPointerOperand {
716719
Operand *operand;
717720
InteriorPointerOperandKind kind;

0 commit comments

Comments
 (0)