mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 03:53:04 +02:00
Fix the count of the number of instructions removed
llvm-svn: 11049
This commit is contained in:
parent
107cf3892c
commit
3575c84933
@ -144,6 +144,7 @@ bool ADCE::dropReferencesOfDeadInstructionsInLiveBlock(BasicBlock *BB) {
|
||||
// Delete the instruction...
|
||||
I = BB->getInstList().erase(I);
|
||||
Changed = true;
|
||||
++NumInstRemoved;
|
||||
} else {
|
||||
++I;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user