[SPARC] Attempt to fix bug introduced by D142458
Reported https://lab.llvm.org/buildbot/#/builders/5/builds/32113
This commit is contained in:
@@ -354,8 +354,8 @@ unsigned SparcInstrInfo::removeBranch(MachineBasicBlock &MBB,
|
||||
!isUncondBranchOpcode(I->getOpcode()))
|
||||
break; // Not a branch
|
||||
|
||||
I->eraseFromParent();
|
||||
Removed += getInstSizeInBytes(*I);
|
||||
I->eraseFromParent();
|
||||
I = MBB.end();
|
||||
++Count;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user