From e500864619a0ff4cfd2b41e404e262b2e2891913 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 23 Dec 2002 23:44:04 +0000 Subject: [PATCH] Fix compilation on GCC 2.96 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5113 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/RegAllocSimple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/RegAllocSimple.cpp b/lib/CodeGen/RegAllocSimple.cpp index ffb6e97b19d..9c8f8d47598 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) { -- 2.34.1