summaryrefslogtreecommitdiffstats
path: root/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
commite500864619a0ff4cfd2b41e404e262b2e2891913 (patch)
treed542bf894a10954bb3ddacd29d57f87c1f774e83 /lib/CodeGen/RegAllocSimple.cpp
parent5c1f0f6914eae03301e9d96982007eaf790e5a25 (diff)
downloadexternal_llvm-e500864619a0ff4cfd2b41e404e262b2e2891913.zip
external_llvm-e500864619a0ff4cfd2b41e404e262b2e2891913.tar.gz
external_llvm-e500864619a0ff4cfd2b41e404e262b2e2891913.tar.bz2
Fix compilation on GCC 2.96
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5113 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocSimple.cpp')
-rw-r--r--lib/CodeGen/RegAllocSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocSimple.cpp b/lib/CodeGen/RegAllocSimple.cpp
index ffb6e97..9c8f8d4 100644
--- a/lib/CodeGen/RegAllocSimple.cpp
+++ b/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) {