Skip to content

Commit

Permalink
[SPARC] Attempt to fix bug introduced by D142458
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Mar 13, 2023
1 parent f271e5d commit ea4cbbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/Sparc/SparcInstrInfo.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit ea4cbbb

Please sign in to comment.