[compiler-rt] [sanitizers] Do not define __has_feature in sanitizer/common_interface_defs.h (PR #66628)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 18 15:29:58 PDT 2023


================
@@ -48,7 +48,15 @@ void __asan_poison_memory_region(void const volatile *addr, size_t size);
 void __asan_unpoison_memory_region(void const volatile *addr, size_t size);
 
 // Macros provided for convenience.
-#if __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__)
+#ifdef __has_feature
+#if __has_feature(address_sanitizer)
----------------
fmayer wrote:

Ah, my fault sorry. I missed that the second is elif and not if :)

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


More information about the llvm-commits mailing list