Skip to content

Commit cd89023

Browse files
vitalybukatstellar
authored andcommitted
[SPARC] Attempt to fix bug introduced by D142458
Reported https://lab.llvm.org/buildbot/#/builders/5/builds/32113 (cherry picked from commit ea4cbbb)
1 parent c57b104 commit cd89023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/Sparc/SparcInstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ unsigned SparcInstrInfo::removeBranch(MachineBasicBlock &MBB,
354354
!isUncondBranchOpcode(I->getOpcode()))
355355
break; // Not a branch
356356

357-
I->eraseFromParent();
358357
Removed += getInstSizeInBytes(*I);
358+
I->eraseFromParent();
359359
I = MBB.end();
360360
++Count;
361361
}

0 commit comments

Comments
 (0)