[libc-commits] [libc] [libc] fix and explicit atomic difference from c++ (PR #119715)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Thu Dec 12 09:08:21 PST 2024
================
@@ -62,6 +62,18 @@ template <typename T> struct Atomic {
return static_cast<int>(mem_scope);
}
+ LIBC_INLINE static T *addressof(T &ref) { return __builtin_addressof(ref); }
----------------
nickdesaulniers wrote:
Do we need `static`, here and below?
https://github.com/llvm/llvm-project/pull/119715
More information about the libc-commits
mailing list