Skip to content

Commit 00116ed

Browse files
committed
[NFC] DCE: TermInsts increment NumDeletedInsts.
1 parent 1851e71 commit 00116ed

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
@@ -763,6 +763,7 @@ bool DCE::removeDead() {
763763
<< "with jump to: BB" << postDom->getDebugID() << "\n");
764764

765765
replaceBranchWithJump(termInst, postDom);
766+
++NumDeletedInsts;
766767
termInst->eraseFromParent();
767768
BranchesChanged = true;
768769
Changed = true;

0 commit comments

Comments
 (0)