File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,13 @@ void ShrinkBorrowScope::findBarriers() {
298
298
// At that time, it was checked that this block (along with all that
299
299
// successor's other predecessors) had a terminator over which the borrow
300
300
// scope could be shrunk. Shrink it now.
301
- assert (tryHoistOverInstruction (block->getTerminator ()));
301
+ #ifndef NDEBUG
302
+ bool hoisted =
303
+ #endif
304
+ tryHoistOverInstruction (block->getTerminator ());
305
+ #ifndef NDEBUG
306
+ assert (hoisted);
307
+ #endif
302
308
}
303
309
SILInstruction *barrier = nullptr ;
304
310
while ((instruction = instruction->getPreviousInstruction ())) {
Original file line number Diff line number Diff line change 1
1
// RUN: %target-sil-opt -copy-propagation -enable-sil-verify-all %s | %FileCheck %s
2
2
3
- // REQUIRES: rdar_86809882
4
-
5
3
import Builtin
6
4
import Swift
7
5
You can’t perform that action at this time.
0 commit comments