[llvm-commits] [llvm] r58815 - /llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp

Bill Wendling isanbard at gmail.com
Thu Nov 6 13:37:09 PST 2008


Author: void
Date: Thu Nov  6 15:37:09 2008
New Revision: 58815

URL: http://llvm.org/viewvc/llvm-project?rev=58815&view=rev
Log:
Don't recalculate the stack position of the stack protector.

Modified:
    llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp

Modified: llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp?rev=58815&r1=58814&r2=58815&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp (original)
+++ llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp Thu Nov  6 15:37:09 2008
@@ -442,6 +442,8 @@
       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.





More information about the llvm-commits mailing list