summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-11-06 21:37:09 +0000
committerBill Wendling <isanbard@gmail.com>2008-11-06 21:37:09 +0000
commit8b47c1e0a2a5b48f9026d2ed378552d51cb7a359 (patch)
tree7baa69af56efc2726fa75423df9270ad45693d64 /llvm/lib/CodeGen
parent8af0a362f19df00ce1ddd1726503261ef0835f99 (diff)
downloadbcm5719-llvm-8b47c1e0a2a5b48f9026d2ed378552d51cb7a359.tar.gz
bcm5719-llvm-8b47c1e0a2a5b48f9026d2ed378552d51cb7a359.zip
Don't recalculate the stack position of the stack protector.
llvm-svn: 58815
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/PrologEpilogInserter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
index 64529372c40..6961c14d36c 100644
--- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud