Skip to content

Commit d71e450

Browse files
committed
Comment OSSA RAUW createBorrowScopeForPhiOperands
1 parent 091532d commit d71e450

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/SILOptimizer/Utils/OwnershipOptUtils.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,10 +1484,10 @@ SILBasicBlock::iterator OwnershipReplaceSingleUseHelper::perform() {
14841484
//===----------------------------------------------------------------------===//
14851485

14861486
/// Given a phi that has been newly created or converted from terminator
1487-
/// results, check for inner guaranteed operands (which do not introduce a
1488-
/// borrow scope). This is invalid OSSA because the phi is a reborrow, and all
1489-
/// borrow-scope-ending instructions must directly use the BorrowedValue that
1490-
/// introduces the scope.
1487+
/// results, check if any of the phi's operands are inner guaranteed values.
1488+
/// This is invalid OSSA because the phi is a reborrow. Like all
1489+
/// borrow-scope-ending instructions a phi must directly use the BorrowedValue
1490+
/// that introduces the scope.
14911491
///
14921492
/// Create nested borrow scopes for its operands.
14931493
///

0 commit comments

Comments
 (0)