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 {
145
145
public:
146
146
bool empty () const { return liveBlocks.empty (); }
147
147
148
- void clear () { liveBlocks.clear (); seenUse = false ; }
148
+ void clear () { liveBlocks.clear (); SWIFT_ASSERT_ONLY ( seenUse = false ) ; }
149
149
150
150
void initializeDefBlock (SILBasicBlock *defBB) {
151
151
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) {
50
50
// /
51
51
// / Terminators are not live out of the block.
52
52
PrunedLiveBlocks::IsLive PrunedLiveBlocks::updateForUse (Operand *use) {
53
- seenUse = true ;
53
+ SWIFT_ASSERT_ONLY ( seenUse = true ) ;
54
54
55
55
auto *bb = use->getUser ()->getParent ();
56
56
switch (getBlockLiveness (bb)) {
You can’t perform that action at this time.
0 commit comments