Don't recalculate the stack position of the stack protector.
authorBill Wendling <isanbard@gmail.com>
Thu, 6 Nov 2008 21:37:09 +0000 (21:37 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 6 Nov 2008 21:37:09 +0000 (21:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58815 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PrologEpilogInserter.cpp

index 64529372c402d0566d289296811bf7951264af9e..6961c14d36c4f3eabb4bf32d3a59296be4c4e043 100644 (file)
@@ -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.