1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00

Fix previous patch

llvm-svn: 12811
This commit is contained in:
Chris Lattner 2004-04-10 07:27:48 +00:00
parent 3b211f0432
commit d4979e2904

View File

@ -145,15 +145,13 @@ bool ADCE::dropReferencesOfDeadInstructionsInLiveBlock(BasicBlock *BB) {
//
PN->replaceAllUsesWith(Constant::getNullValue(PN->getType()));
} else {
if (isa<CallInst>(I))
++NumCallRemoved;
else
++NumInstRemoved;
// Delete the instruction...
BB->getInstList().erase(I++);
++I;
BB->getInstList().erase(PN);
Changed = true;
++NumInstRemoved;
} else {
++I;
}
} else {
++I;