From 44cf38c01ff610139d2e8dbbdc4e6123a3debcdd 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58815 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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. -- 2.34.1