@@ -150,7 +150,7 @@ bool findTransitiveGuaranteedUses(SILValue guaranteedValue,
150
150
// / 1. If \p guaranteedValue introduces a borrow scope (begin_borrow,
151
151
// / load_borrow, or phi), then its only use points are the extended scope-ending
152
152
// / uses, and this function returns true. This is, in fact, equivalent to
153
- // / calling BorrowedValue::visitExtendedLocalScopeEndingUses ().
153
+ // / calling BorrowedValue::visitExtendedScopeEndingUses ().
154
154
// /
155
155
// / 2. If \p guaranteedValue does not introduce a borrow scope (it is not a
156
156
// / valid BorrowedValue), then its uses are discovered transitively by looking
@@ -320,8 +320,6 @@ struct BorrowingOperand {
320
320
// / BorrowingOperand.
321
321
// /
322
322
// / Returns false and early exits if the visitor \p func returns false.
323
- // /
324
- // / Note: this does not visit the intermediate reborrows.
325
323
bool visitExtendedScopeEndingUses (function_ref<bool (Operand *)> func) const ;
326
324
327
325
// / Returns true if this borrow scope operand consumes guaranteed
@@ -504,7 +502,7 @@ struct InteriorPointerOperand;
504
502
// / jointly post-dominate this value (see visitLocalScopeEndingUses()). The
505
503
// / extended scope, including reborrows has end points that are not dominated by
506
504
// / this value but still jointly post-dominate (see
507
- // / visitExtendedLocalScopeEndingUses ()).
505
+ // / visitExtendedScopeEndingUses ()).
508
506
struct BorrowedValue {
509
507
SILValue value;
510
508
BorrowedValueKind kind = BorrowedValueKind::Invalid;
@@ -563,8 +561,8 @@ struct BorrowedValue {
563
561
// / Given a local borrow scope introducer, visit all non-forwarding consuming
564
562
// / users. This means that this looks through guaranteed block arguments. \p
565
563
// / visitor is *not* called on Reborrows, only on final scope ending uses.
566
- bool visitExtendedLocalScopeEndingUses (
567
- function_ref<bool (Operand *)> visitor) const ;
564
+ bool
565
+ visitExtendedScopeEndingUses ( function_ref<bool (Operand *)> visitor) const ;
568
566
569
567
void print (llvm::raw_ostream &os) const ;
570
568
SWIFT_DEBUG_DUMP { print (llvm::dbgs ()); }
0 commit comments