Author: Usman Nadeem Date: 2022-08-12T16:30:08-07:00 New Revision: 405ad847931f68673e6c7e95a26cc265e150d9c6
URL: https://github.com/llvm/llvm-project/commit/405ad847931f68673e6c7e95a26cc265e150d9c6 DIFF: https://github.com/llvm/llvm-project/commit/405ad847931f68673e6c7e95a26cc265e150d9c6.diff LOG: Update hwasan test to fix failure on older Android API versions. In Android API < 30 there is no HWAsan instrumentation support for globals so the test fails if API < 30 or if the target triple does not specify the API version. Add -triple=aarch64-linux-android31 to enable global instrumentation. This is the same triple as is used in the RUN line for -fsanitize=memtag-globals. Differential Revision: https://reviews.llvm.org/D131806 Change-Id: I300703bd126b10e3c52505e23c78c5a48acb0309 Added: Modified: clang/test/CodeGen/sanitizer-special-case-list-globals.c Removed: ################################################################################ diff --git a/clang/test/CodeGen/sanitizer-special-case-list-globals.c b/clang/test/CodeGen/sanitizer-special-case-list-globals.c index a688b00630ed..f2680f2ca5f5 100644 --- a/clang/test/CodeGen/sanitizer-special-case-list-globals.c +++ b/clang/test/CodeGen/sanitizer-special-case-list-globals.c @@ -13,7 +13,7 @@ /// first), which is hard to check for, as 'CHECK-DAG' doesn't play terribly /// nicely with 'CHECK-NOT'. This is why the 'always_ignored' and /// 'hwasan_ignored' comes first in this file. -// RUN: %clang_cc1 -fsanitize=hwaddress -emit-llvm %s -o -\ +// RUN: %clang_cc1 -fsanitize=hwaddress -triple=aarch64-linux-android31 -emit-llvm %s -o -\ // RUN: -fsanitize-ignorelist=%S/Inputs/sanitizer-special-case-list-globals.txt \ // RUN: | FileCheck %s --check-prefix=HWASAN _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits