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 646dc13 commit 5e8f369Copy full SHA for 5e8f369
lib/SILOptimizer/SemanticARC/BorrowScopeOpts.cpp
@@ -49,9 +49,8 @@ bool SemanticARCOptVisitor::visitBeginBorrowInst(BeginBorrowInst *bbi) {
49
50
// Lexical borrow scopes must remain in order to ensure that value lifetimes
51
// are not observably shortened.
52
- if (bbi->isLexical()) {
53
- if (!isRedundantLexicalBeginBorrow(bbi))
54
- return false;
+ if (bbi->isLexical() && !isRedundantLexicalBeginBorrow(bbi)) {
+ return false;
55
}
56
57
auto kind = bbi->getOperand().getOwnershipKind();
0 commit comments