mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] DCE: TermInsts increment NumDeletedInsts.
This commit is contained in:
@@ -763,6 +763,7 @@ bool DCE::removeDead() {
|
|||||||
<< "with jump to: BB" << postDom->getDebugID() << "\n");
|
<< "with jump to: BB" << postDom->getDebugID() << "\n");
|
||||||
|
|
||||||
replaceBranchWithJump(termInst, postDom);
|
replaceBranchWithJump(termInst, postDom);
|
||||||
|
++NumDeletedInsts;
|
||||||
termInst->eraseFromParent();
|
termInst->eraseFromParent();
|
||||||
BranchesChanged = true;
|
BranchesChanged = true;
|
||||||
Changed = true;
|
Changed = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user