[compiler-rt] r342236 - [asan] Fix test case failure on SystemZ
Ulrich Weigand via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 14 06:36:55 PDT 2018
Author: uweigand
Date: Fri Sep 14 06:36:55 2018
New Revision: 342236
URL: http://llvm.org/viewvc/llvm-project?rev=342236&view=rev
Log:
[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.
Modified:
compiler-rt/trunk/test/asan/TestCases/throw_catch.cc
Modified: compiler-rt/trunk/test/asan/TestCases/throw_catch.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/throw_catch.cc?rev=342236&r1=342235&r2=342236&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/throw_catch.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/throw_catch.cc Fri Sep 14 06:36:55 2018
@@ -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,
More information about the llvm-commits
mailing list