Fix the count of the number of instructions removed

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11049 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-02-01 05:15:07 +00:00
parent 676cf8cb1d
commit e400a0976f

View File

@ -144,6 +144,7 @@ bool ADCE::dropReferencesOfDeadInstructionsInLiveBlock(BasicBlock *BB) {
// Delete the instruction... // Delete the instruction...
I = BB->getInstList().erase(I); I = BB->getInstList().erase(I);
Changed = true; Changed = true;
++NumInstRemoved;
} else { } else {
++I; ++I;
} }