diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-11-06 21:37:09 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-11-06 21:37:09 +0000 |
commit | 44cf38c01ff610139d2e8dbbdc4e6123a3debcdd (patch) | |
tree | 9d3456e8afab0d5c08a0e90a86176b526d58ca8a /lib/CodeGen/PrologEpilogInserter.cpp | |
parent | e75808cf3d92d14c5659a15d0d17bd21a54fd8cc (diff) |
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
Diffstat (limited to 'lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r-- | lib/CodeGen/PrologEpilogInserter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index 64529372c4..6961c14d36 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. |