OSDN Git Service

[safestack] Make sure the unsafe stack pointer is popped in all cases
authorAnna Zaks <ganna@apple.com>
Tue, 2 Feb 2016 01:03:11 +0000 (01:03 +0000)
committerAnna Zaks <ganna@apple.com>
Tue, 2 Feb 2016 01:03:11 +0000 (01:03 +0000)
commit59203823d7498b8a2a3a2573ea12976bf7f8d00d
treefc7cf4411a7b4608394b243ac0e889546233816c
parentb4e775c587ff94d5924a464ab8e47470db1a3c05
[safestack] Make sure the unsafe stack pointer is popped in all cases

The unsafe stack pointer is only popped in moveStaticAllocasToUnsafeStack so it won't happen if there are no static allocas.

Fixes https://llvm.org/bugs/show_bug.cgi?id=26122

Differential Revision: http://reviews.llvm.org/D16339

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259447 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SafeStack.cpp
test/Transforms/SafeStack/ARM/setjmp.ll
test/Transforms/SafeStack/dynamic-alloca.ll
test/Transforms/SafeStack/setjmp2.ll