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

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


Author: void
Date: Fri Dec 11 15:52:11 2009
New Revision: 91164

URL: http://llvm.org/viewvc/llvm-project?rev=91164&view=rev
Log:
Re-enable stack protectors for non-character arrays.

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=91164&r1=91163&r2=91164&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:52:11 2009
@@ -112,10 +112,6 @@
           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