summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocSimple.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-23 23:44:04 +0000
committerChris Lattner <sabre@nondot.org>2002-12-23 23:44:04 +0000
commit095eac8109483d921cb1248d080bc1663a939bae (patch)
tree69026bf5fd63b0e084784137b4055cfcf8020e81 /llvm/lib/CodeGen/RegAllocSimple.cpp
parent941945785e6f23441c2c2e7d8623be163055830a (diff)
downloadbcm5719-llvm-095eac8109483d921cb1248d080bc1663a939bae.tar.gz
bcm5719-llvm-095eac8109483d921cb1248d080bc1663a939bae.zip
Fix compilation on GCC 2.96
llvm-svn: 5113
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocSimple.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocSimple.cpp b/llvm/lib/CodeGen/RegAllocSimple.cpp
index ffb6e97b19d..9c8f8d47598 100644
--- a/llvm/lib/CodeGen/RegAllocSimple.cpp
+++ b/llvm/lib/CodeGen/RegAllocSimple.cpp
@@ -346,7 +346,7 @@ void RegAllocSimple::EmitPrologue() {
///
void RegAllocSimple::EmitEpilogue(MachineBasicBlock &MBB) {
// Insert instructions before the return.
- MachineBasicBlock::iterator I = --MBB.end();
+ MachineBasicBlock::iterator I = MBB.end()-1;
const unsigned *CSRegs = RegInfo->getCalleeSaveRegs();
for (unsigned i = 0; CSRegs[i]; ++i) {
OpenPOWER on IntegriCloud