[llvm-branch-commits] [llvm-branch] r91467 - /llvm/branches/Apple/Leela-M1/lib/CodeGen/StackProtector.cpp
Bill Wendling
isanbard at gmail.com
Tue Dec 15 14:45:58 PST 2009
Author: void
Date: Tue Dec 15 16:45:57 2009
New Revision: 91467
URL: http://llvm.org/viewvc/llvm-project?rev=91467&view=rev
Log:
Temporarily re-enable stack protectors for more than char 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=91467&r1=91466&r2=91467&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:45:57 2009
@@ -112,10 +112,11 @@
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