File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
include/swift/SILOptimizer/Utils Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ class PrunedLiveBlocks {
145145public:
146146 bool empty () const { return liveBlocks.empty (); }
147147
148- void clear () { liveBlocks.clear (); seenUse = false ; }
148+ void clear () { liveBlocks.clear (); SWIFT_ASSERT_ONLY ( seenUse = false ) ; }
149149
150150 void initializeDefBlock (SILBasicBlock *defBB) {
151151 assert (!seenUse && " cannot initialize more defs with partial liveness" );
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ void PrunedLiveBlocks::computeUseBlockLiveness(SILBasicBlock *userBB) {
5050// /
5151// / Terminators are not live out of the block.
5252PrunedLiveBlocks::IsLive PrunedLiveBlocks::updateForUse (Operand *use) {
53- seenUse = true ;
53+ SWIFT_ASSERT_ONLY ( seenUse = true ) ;
5454
5555 auto *bb = use->getUser ()->getParent ();
5656 switch (getBlockLiveness (bb)) {
You can’t perform that action at this time.
0 commit comments