[SPARC] Attempt to fix bug introduced by D142458
Reported https://lab.llvm.org/buildbot/#/builders/5/builds/32113
This commit is contained in:
parent
f271e5d9d4
commit
ea4cbbbfa4
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user