We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e8f369 commit 75b351eCopy full SHA for 75b351e
lib/SILOptimizer/SemanticARC/BorrowScopeOpts.cpp
@@ -47,8 +47,8 @@ bool SemanticARCOptVisitor::visitBeginBorrowInst(BeginBorrowInst *bbi) {
47
if (!ctx.shouldPerform(ARCTransformKind::RedundantBorrowScopeElimPeephole))
48
return false;
49
50
- // Lexical borrow scopes must remain in order to ensure that value lifetimes
51
- // are not observably shortened.
+ // Non-redundant, lexical borrow scopes must remain in order to ensure that
+ // value lifetimes are not observably shortened.
52
if (bbi->isLexical() && !isRedundantLexicalBeginBorrow(bbi)) {
53
54
}
0 commit comments