From 9ed8fd5df8caca680159a467111ae744992324e4 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Fri, 14 Sep 2018 13:36:55 +0000 Subject: [PATCH] [asan] Fix test case failure on SystemZ Since we changed our inlining parameters, this test case was failing on SystemZ, as the two tests were now both inlined into the main function, which the test didn't expect. Fixed by adding a few more noinline attributes. llvm-svn: 342236 --- compiler-rt/test/asan/TestCases/throw_catch.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler-rt/test/asan/TestCases/throw_catch.cc b/compiler-rt/test/asan/TestCases/throw_catch.cc index 0108351..d7f00ea 100644 --- a/compiler-rt/test/asan/TestCases/throw_catch.cc +++ b/compiler-rt/test/asan/TestCases/throw_catch.cc @@ -21,6 +21,7 @@ void ThrowAndCatch() { } } +__attribute__((noinline)) void TestThrow() { char x[32]; fprintf(stderr, "Before: %p poisoned: %d\n", &x, @@ -36,6 +37,7 @@ void TestThrow() { assert(!__asan_address_is_poisoned(x + 32)); } +__attribute__((noinline)) void TestThrowInline() { char x[32]; fprintf(stderr, "Before: %p poisoned: %d\n", &x, -- 2.7.4