[libcxx-commits] [libcxx] [ASan][libc++] Update string ASan annotations to Zero-overhead (PR #76165)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 21 12:16:20 PST 2023


================
@@ -659,6 +659,13 @@ _LIBCPP_PUSH_MACROS
 #else
 #  define _LIBCPP_STRING_INTERNAL_MEMORY_ACCESS
 #endif
+#ifndef _IF_ASAN
+#  ifndef _LIBCPP_HAS_NO_ASAN
+#    define _IF_ASAN() if _LIBCPP_CONSTEXPR (true)
----------------
AdvenamTacet wrote:

Moved back to string file based on: https://github.com/llvm/llvm-project/pull/76165#discussion_r1434348292

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


More information about the libcxx-commits mailing list