[SPARC] Attempt to fix bug introduced by D142458

Reported https://lab.llvm.org/buildbot/#/builders/5/builds/32113
This commit is contained in:
Vitaly Buka 2023-03-12 18:22:41 -07:00
parent f271e5d9d4
commit ea4cbbbfa4

View File

@ -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;
}