[llvm-branch-commits] [llvm-branch] r91167 - /llvm/branches/Apple/Leela-M1/lib/CodeGen/StackProtector.cpp

Bill Wendling isanbard at gmail.com
Fri Dec 11 13:54:06 PST 2009


Author: void
Date: Fri Dec 11 15:54:06 2009
New Revision: 91167

URL: http://llvm.org/viewvc/llvm-project?rev=91167&view=rev
Log:
Revert stack protector change r91164 after tagging.

Modified:
    llvm/branches/Apple/Leela-M1/lib/CodeGen/StackProtector.cpp

Modified: llvm/branches/Apple/Leela-M1/lib/CodeGen/StackProtector.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela-M1/lib/CodeGen/StackProtector.cpp?rev=91167&r1=91166&r2=91167&view=diff

==============================================================================
--- llvm/branches/Apple/Leela-M1/lib/CodeGen/StackProtector.cpp (original)
+++ llvm/branches/Apple/Leela-M1/lib/CodeGen/StackProtector.cpp Fri Dec 11 15:54:06 2009
@@ -112,6 +112,10 @@
           return true;
 
         if (const ArrayType *AT = dyn_cast<ArrayType>(AI->getAllocatedType())) {
+          // We apparently only care about character arrays.
+          if (AT->getElementType() != Type::getInt8Ty(AT->getContext()))
+            continue;
+
           // If an array has more than SSPBufferSize bytes of allocated space,
           // then we emit stack protectors.
           if (SSPBufferSize <= TD->getTypeAllocSize(AT))





More information about the llvm-branch-commits mailing list