From 26eadae94d0361a1c06829c64f99773bd754419d Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 6 Nov 2008 21:37:09 +0000 Subject: [PATCH] Don't recalculate the stack position of the stack protector. llvm-svn: 58815 --- lib/CodeGen/PrologEpilogInserter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index 64529372c40..6961c14d36c 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/lib/CodeGen/PrologEpilogInserter.cpp @@ -442,6 +442,8 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) { continue; if (FFI->isDeadObjectIndex(i)) continue; + if (FFI->getStackProtectorIndex() == (int)i) + continue; // If stack grows down, we need to add size of find the lowest // address of the object.