[libc-commits] [libc] [libc] Remove obsolete LIBC_HAS_BUILTIN macro (PR #86554)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Mon Mar 25 12:55:25 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))
----------------
nickdesaulniers wrote:
Mind doing this throughout the rest of your changes to libc/src/__support/CPP/atomic.h, too?
https://github.com/llvm/llvm-project/pull/86554
More information about the libc-commits
mailing list