summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp')
-rw-r--r--llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp b/llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
index 51a6f8b89e5..28fc75a8f6c 100644
--- a/llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
+++ b/llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
@@ -542,7 +542,7 @@ void PhyRegAlloc::updateMachineCode()
}
// move instruction before branch
- MBB.insert(MII, MBB.remove(DelaySlotMI));
+ MBB.insert(MII, MBB.remove(DelaySlotMI++));
// On cond1 we are done (we already moved the
// instruction out of the delay slot). On cond2 we need
OpenPOWER on IntegriCloud