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

Guillaume Chatelet via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 27 08:29:05 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)
----------------
gchatelet wrote:

Ok my bad, your godbolt link is the one I thought I sent (bad night, need more coffee). You're right that all  statements must be well formed even if discarded. My point is moot.

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


More information about the llvm-commits mailing list