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() {
298298 // At that time, it was checked that this block (along with all that
299299 // successor's other predecessors) had a terminator over which the borrow
300300 // 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
302308 }
303309 SILInstruction *barrier = nullptr ;
304310 while ((instruction = instruction->getPreviousInstruction ())) {
Original file line number Diff line number Diff line change 11// RUN: %target-sil-opt -copy-propagation -enable-sil-verify-all %s | %FileCheck %s
22
3- // REQUIRES: rdar_86809882
4-
53import Builtin
64import Swift
75
You can’t perform that action at this time.
0 commit comments