Fix alloca_instruments_all_paddings.cc test to work under higher -O levels (llvm...
authorKuba Brecka <kuba.brecka@gmail.com>
Tue, 24 Feb 2015 09:47:05 +0000 (09:47 +0000)
committerKuba Brecka <kuba.brecka@gmail.com>
Tue, 24 Feb 2015 09:47:05 +0000 (09:47 +0000)
commit81dce4c02c3c0a9a8a8cdb9c244245a1562ebe0e
tree2d53cd7b79030d74f1f8fbec956db1c85db57849
parentc3b9d471f638f54be80003e870a09e7bd52d7277
Fix alloca_instruments_all_paddings.cc test to work under higher -O levels (llvm part)

When AddressSanitizer only a single dynamic alloca and no static allocas, due to an early exit from FunctionStackPoisoner::poisonStack we forget to unpoison the dynamic alloca.  This patch fixes that.

Reviewed at http://reviews.llvm.org/D7810

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230316 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/AddressSanitizer.cpp