Skip to content

Commit 499222e

Browse files
committed
[NFC] DCE: TermInsts increment NumDeletedInsts.
1 parent fec06e0 commit 499222e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/SILOptimizer/Transforms/DeadCodeElimination.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@ bool DCE::removeDead() {
760760
<< "with jump to: BB" << postDom->getDebugID() << "\n");
761761

762762
replaceBranchWithJump(termInst, postDom);
763+
++NumDeletedInsts;
763764
termInst->eraseFromParent();
764765
BranchesChanged = true;
765766
Changed = true;

0 commit comments

Comments
 (0)