Skip to content

Commit 9166233

Browse files
committed
[NFC] [ShrinkBorrowScope] Used standard assert.
1 parent 4eea762 commit 9166233

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/SILOptimizer/Utils/ShrinkBorrowScope.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,9 @@ void ShrinkBorrowScope::findBarriers() {
301301
// At that time, it was checked that this block (along with all that
302302
// successor's other predecessors) had a terminator over which the borrow
303303
// scope could be shrunk. Shrink it now.
304-
#ifndef NDEBUG
305-
bool hoisted =
306-
#endif
307-
tryHoistOverInstruction(block->getTerminator());
308-
#ifndef NDEBUG
304+
bool hoisted = tryHoistOverInstruction(block->getTerminator());
309305
assert(hoisted);
310-
#endif
306+
(void)hoisted;
311307
}
312308
SILInstruction *barrier = nullptr;
313309
while ((instruction = instruction->getPreviousInstruction())) {

0 commit comments

Comments
 (0)