commit | cd89023f797900e4492da58b7bed36f702120011 | [log] [tgz] |
---|---|---|
author | Vitaly Buka <vitalybuka@google.com> | Sun Mar 12 18:22:41 2023 -0700 |
committer | Tom Stellard <tstellar@redhat.com> | Tue Apr 04 20:36:38 2023 -0700 |
tree | 52f420b06f73193999f15308df23d676b12ca67e | |
parent | c57b104e95c12cc5984077940789a3c2c50510ae [diff] |
[SPARC] Attempt to fix bug introduced by D142458 Reported https://lab.llvm.org/buildbot/#/builders/5/builds/32113 (cherry picked from commit ea4cbbbfa4207c30888acffc499c8fc71cd3d84f)
diff --git a/llvm/lib/Target/Sparc/SparcInstrInfo.cpp b/llvm/lib/Target/Sparc/SparcInstrInfo.cpp index cccce42..a3a09a3 100644 --- a/llvm/lib/Target/Sparc/SparcInstrInfo.cpp +++ b/llvm/lib/Target/Sparc/SparcInstrInfo.cpp
@@ -354,8 +354,8 @@ !isUncondBranchOpcode(I->getOpcode())) break; // Not a branch - I->eraseFromParent(); Removed += getInstSizeInBytes(*I); + I->eraseFromParent(); I = MBB.end(); ++Count; }