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 authored and tstellar committed Apr 5, 2023
1 parent c57b104 commit cd89023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/Sparc/SparcInstrInfo.cpp
Original file line number Diff line number Diff line change
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 cd89023

Please sign in to comment.