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.
2 parents 4a9cd5b + dc29673 commit bdafd9bCopy full SHA for bdafd9b
lib/SILOptimizer/Utils/ShrinkBorrowScope.cpp
@@ -315,7 +315,13 @@ void ShrinkBorrowScope::findBarriers() {
315
// At that time, it was checked that this block (along with all that
316
// successor's other predecessors) had a terminator over which the borrow
317
// scope could be shrunk. Shrink it now.
318
- assert(tryHoistOverInstruction(block->getTerminator()));
+#ifndef NDEBUG
319
+ bool hoisted =
320
+#endif
321
+ tryHoistOverInstruction(block->getTerminator());
322
323
+ assert(hoisted);
324
325
}
326
SILInstruction *barrier = nullptr;
327
while ((instruction = getPreviousInstruction(instruction))) {
0 commit comments