[all-commits] [llvm/llvm-project] 405ad8: Update hwasan test to fix failure on older Android...

Usman Nadeem via All-commits all-commits at lists.llvm.org
Fri Aug 12 16:31:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 405ad847931f68673e6c7e95a26cc265e150d9c6
      https://github.com/llvm/llvm-project/commit/405ad847931f68673e6c7e95a26cc265e150d9c6
  Author: Usman Nadeem <mnadeem at quicinc.com>
  Date:   2022-08-12 (Fri, 12 Aug 2022)

  Changed paths:
    M clang/test/CodeGen/sanitizer-special-case-list-globals.c

  Log Message:
  -----------
  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




More information about the All-commits mailing list