[llvm] [mlir] [mlir][tosa] Use optnone for compliance initialization under HWAsan (PR #226310)

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 16:01:19 PDT 2026


================
@@ -611,7 +611,7 @@ void __asan_unpoison_memory_region(void const volatile *addr, size_t size);
 
 /// \macro LLVM_HWADDRESS_SANITIZER_BUILD
 /// Whether LLVM itself is built with HWAddressSanitizer instrumentation.
-#if __has_feature(hwaddress_sanitizer)
+#if __has_feature(hwaddress_sanitizer) || defined(__SANITIZE__HWADDRESS__)
----------------
thurstond wrote:

I think this belongs in a separate CL. It's not directly related to mlir/tosa.

https://github.com/llvm/llvm-project/pull/226310


More information about the llvm-commits mailing list