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)
commitf5875d3026dd9dd5ca89791615500bde4687c577
tree5a46cc2145fad93d3821a77f6cd1345354184425
parent4f818708a808d52bca8cf8bdb79a9595268f22bd
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

llvm-svn: 230316
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp