[PATCH] D22714: stop short-circuiting the SSP code for sspstrong
George Burgess IV via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 20 14:38:55 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL282022: [CodeGen] stop short-circuiting the SSP code for sspstrong. (authored by gbiv).
Changed prior to commit:
https://reviews.llvm.org/D22714?vs=71961&id=71987#toc
Repository:
rL LLVM
https://reviews.llvm.org/D22714
Files:
llvm/trunk/lib/CodeGen/StackProtector.cpp
Index: llvm/trunk/lib/CodeGen/StackProtector.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/StackProtector.cpp
+++ llvm/trunk/lib/CodeGen/StackProtector.cpp
@@ -236,11 +236,6 @@
for (const Instruction &I : BB) {
if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) {
if (AI->isArrayAllocation()) {
- // SSP-Strong: Enable protectors for any call to alloca, regardless
- // of size.
- if (Strong)
- return true;
-
if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) {
if (CI->getLimitedValue(SSPBufferSize) >= SSPBufferSize) {
// A call to alloca with size >= SSPBufferSize requires
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22714.71987.patch
Type: text/x-patch
Size: 744 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160920/5e096142/attachment.bin>
More information about the llvm-commits
mailing list