From 7c02c0883af664dc656e9acae177ea0f376ac950 Mon Sep 17 00:00:00 2001 From: Florian Mayer Date: Fri, 20 Aug 2021 10:07:20 +0100 Subject: [PATCH] Use new pass manager for HWASan builds. Now that we have rolled to a sufficiently new clang, HWASan also works with the new pass manager. Bug: 135298400 Test: introduce memory safety bug and verify HWASan gets triggered. Change-Id: I497ca6542971569cbcad949780e4c7df5b0bfb44 --- cc/sanitize.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cc/sanitize.go b/cc/sanitize.go index dd15ae13d..90974aa4f 100644 --- a/cc/sanitize.go +++ b/cc/sanitize.go @@ -41,7 +41,6 @@ var ( hwasanCflags = []string{"-fno-omit-frame-pointer", "-Wno-frame-larger-than=", "-fsanitize-hwaddress-abi=platform", - "-fno-experimental-new-pass-manager", // The following improves debug location information // availability at the cost of its accuracy. It increases // the likelihood of a stack variable's frame offset