[llvm-branch-commits] [llvm-branch] r91470 - /llvm/branches/Apple/Leela-M1/lib/CodeGen/StackProtector.cpp
Bill Wendling
isanbard at gmail.com
Tue Dec 15 14:47:19 PST 2009
Author: void
Date: Tue Dec 15 16:47:18 2009
New Revision: 91470
URL: http://llvm.org/viewvc/llvm-project?rev=91470&view=rev
Log:
Revert stack protector change 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=91470&r1=91469&r2=91470&view=diff
==============================================================================
--- llvm/branches/Apple/Leela-M1/lib/CodeGen/StackProtector.cpp (original)
+++ llvm/branches/Apple/Leela-M1/lib/CodeGen/StackProtector.cpp Tue Dec 15 16:47:18 2009
@@ -112,11 +112,10 @@
return true;
if (const ArrayType *AT = dyn_cast<ArrayType>(AI->getAllocatedType())) {
-#if 0
// We apparently only care about character arrays.
if (AT->getElementType() != Type::getInt8Ty(AT->getContext()))
continue;
-#endif
+
// 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