[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:26 PDT 2024


================
@@ -71,7 +71,7 @@ template <typename T> struct Atomic {
 
   T load(MemoryOrder mem_ord = MemoryOrder::SEQ_CST,
          [[maybe_unused]] MemoryScope mem_scope = MemoryScope::DEVICE) {
-    if constexpr (LIBC_HAS_BUILTIN(__scoped_atomic_load_n))
+    if constexpr (__has_builtin(__scoped_atomic_load_n))
----------------
marcauberer wrote:

Done.

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


More information about the libc-commits mailing list