summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocLocal.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-01-16 18:06:43 +0000
committerChris Lattner <sabre@nondot.org>2003-01-16 18:06:43 +0000
commit176866caede651b2f9c6b0fc344f29378279a15e (patch)
tree7cc4ded5c231c7d8625cc1e4396fa602726bf8b2 /llvm/lib/CodeGen/RegAllocLocal.cpp
parent2f983fcce3d43edbcb8cfe6780a2aae46e15f474 (diff)
downloadbcm5719-llvm-176866caede651b2f9c6b0fc344f29378279a15e.tar.gz
bcm5719-llvm-176866caede651b2f9c6b0fc344f29378279a15e.zip
Fix problems with empty basic blocks
llvm-svn: 5326
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLocal.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocLocal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLocal.cpp b/llvm/lib/CodeGen/RegAllocLocal.cpp
index d6e273a8a68..46b06ce0440 100644
--- a/llvm/lib/CodeGen/RegAllocLocal.cpp
+++ b/llvm/lib/CodeGen/RegAllocLocal.cpp
@@ -572,7 +572,7 @@ void RA::AllocateBasicBlock(MachineBasicBlock &MBB) {
// Rewind the iterator to point to the first flow control instruction...
const TargetInstrInfo &TII = TM->getInstrInfo();
- I = MBB.end()-1;
+ I = MBB.end();
while (I != MBB.begin() && TII.isTerminatorInstr((*(I-1))->getOpcode()))
--I;
OpenPOWER on IntegriCloud