Revert "[hwasan] remove workaround for fixed toolchain issue"
This reverts commit 07ca220182df227b0e920325c4f89127767dfbf4.
Reason for revert: b/293532332 - bionic unit tests failing
Change-Id: I11412df55d7131ff0bb36dee7258b75a12024100
diff --git a/cc/sanitize.go b/cc/sanitize.go
index c1ef970..626005b 100644
--- a/cc/sanitize.go
+++ b/cc/sanitize.go
@@ -56,6 +56,10 @@
// higher number of "optimized out" stack variables.
// b/112437883.
"-instcombine-lower-dbg-declare=0",
+ // TODO(b/159343917): HWASan and GlobalISel don't play nicely, and
+ // GlobalISel is the default at -O0 on aarch64.
+ "--aarch64-enable-global-isel-at-O=-1",
+ "-fast-isel=false",
"-hwasan-use-after-scope=1",
"-dom-tree-reachability-max-bbs-to-explore=128",
}