[libc-commits] [libc] [llvm] [libc] Remove obsolete LIBC_HAS_BUILTIN macro (PR #86554)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Wed Mar 27 07:56:31 PDT 2024
================
@@ -166,7 +172,7 @@ LIBC_INLINE void atomic_thread_fence([[maybe_unused]] MemoryOrder mem_ord) {
// except no instructions for memory ordering are issued. Only reordering of
// the instructions by the compiler is suppressed as order instructs.
LIBC_INLINE void atomic_signal_fence([[maybe_unused]] MemoryOrder mem_ord) {
-#if LIBC_HAS_BUILTIN(__atomic_signal_fence)
+#if __has_builtin(__atomic_signal_fence)
----------------
jhuber6 wrote:
https://godbolt.org/z/c339Mbhah this is what I was referring to, since `if constexpr(...)` doesn't prevent the AST from seeing the undefined function.
https://github.com/llvm/llvm-project/pull/86554
More information about the libc-commits
mailing list