Skip to content

Commit 5e8f369

Browse files
committed
[Gardening] Merged two conditions.
1 parent 646dc13 commit 5e8f369

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/SILOptimizer/SemanticARC/BorrowScopeOpts.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ bool SemanticARCOptVisitor::visitBeginBorrowInst(BeginBorrowInst *bbi) {
4949

5050
// Lexical borrow scopes must remain in order to ensure that value lifetimes
5151
// are not observably shortened.
52-
if (bbi->isLexical()) {
53-
if (!isRedundantLexicalBeginBorrow(bbi))
54-
return false;
52+
if (bbi->isLexical() && !isRedundantLexicalBeginBorrow(bbi)) {
53+
return false;
5554
}
5655

5756
auto kind = bbi->getOperand().getOwnershipKind();

0 commit comments

Comments
 (0)