diff options
author | Chris Lattner <sabre@nondot.org> | 2002-12-23 23:44:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-12-23 23:44:04 +0000 |
commit | 095eac8109483d921cb1248d080bc1663a939bae (patch) | |
tree | 69026bf5fd63b0e084784137b4055cfcf8020e81 /llvm/lib/CodeGen/RegAllocSimple.cpp | |
parent | 941945785e6f23441c2c2e7d8623be163055830a (diff) | |
download | bcm5719-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.cpp | 2 |
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) { |