[libc-commits] [libc] [libc] Remove obsolete LIBC_HAS_BUILTIN macro (PR #86554)

Marc Auberer via libc-commits libc-commits at lists.llvm.org
Mon Mar 25 12:37:34 PDT 2024


================
@@ -10,16 +10,15 @@
 #define LLVM_LIBC_SRC_STRING_MEMORY_UTILS_GENERIC_BUILTIN_H
 
 #include "src/__support/macros/attributes.h" // LIBC_INLINE
-#include "src/__support/macros/config.h"     // LIBC_HAS_BUILTIN
 #include "src/string/memory_utils/utils.h"   // Ptr, CPtr
 
 #include <stddef.h> // size_t
 
 namespace LIBC_NAMESPACE {
 
-static_assert(LIBC_HAS_BUILTIN(__builtin_memcpy), "Builtin not defined");
-static_assert(LIBC_HAS_BUILTIN(__builtin_memset), "Builtin not defined");
-static_assert(LIBC_HAS_BUILTIN(__builtin_memmove), "Builtin not defined");
+static_assert(__has_builtin(__builtin_memcpy), "Builtin not defined");
+static_assert(__has_builtin(__builtin_memset), "Builtin not defined");
+static_assert(__has_builtin(__builtin_memmove), "Builtin not defined");
----------------
marcauberer wrote:

Done.

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


More information about the libc-commits mailing list