summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuba Brecka <kuba.brecka@gmail.com>2015-02-24 09:47:33 +0000
committerKuba Brecka <kuba.brecka@gmail.com>2015-02-24 09:47:33 +0000
commite4ac10179ca01b53486d7ceb54b6e0e9add682a0 (patch)
tree46b6146310b8b40998b276d16d33ea1a81886ec8
parentf5875d3026dd9dd5ca89791615500bde4687c577 (diff)
downloadbcm5719-llvm-e4ac10179ca01b53486d7ceb54b6e0e9add682a0.tar.gz
bcm5719-llvm-e4ac10179ca01b53486d7ceb54b6e0e9add682a0.zip
Fix alloca_instruments_all_paddings.cc test to work under higher -O levels (compiler-rt 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: 230317
-rw-r--r--compiler-rt/test/asan/TestCases/alloca_instruments_all_paddings.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/test/asan/TestCases/alloca_instruments_all_paddings.cc b/compiler-rt/test/asan/TestCases/alloca_instruments_all_paddings.cc
index d60a3b22dcb..e2c7fafb193 100644
--- a/compiler-rt/test/asan/TestCases/alloca_instruments_all_paddings.cc
+++ b/compiler-rt/test/asan/TestCases/alloca_instruments_all_paddings.cc
@@ -1,4 +1,5 @@
// RUN: %clangxx_asan -O0 -mllvm -asan-instrument-allocas %s -o %t
+// RUN: %clangxx_asan -O3 -mllvm -asan-instrument-allocas %s -o %t
// RUN: %run %t 2>&1
//
OpenPOWER on IntegriCloud