diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-01-16 18:06:43 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-01-16 18:06:43 +0000 |
| commit | 176866caede651b2f9c6b0fc344f29378279a15e (patch) | |
| tree | 7cc4ded5c231c7d8625cc1e4396fa602726bf8b2 /llvm/lib/CodeGen/RegAllocLocal.cpp | |
| parent | 2f983fcce3d43edbcb8cfe6780a2aae46e15f474 (diff) | |
| download | bcm5719-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.cpp | 2 |
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; |

