mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-02 02:22:31 +00:00
Fix previous patch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12811 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
17177601fb
commit
27c694bacb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user