[libcxx-commits] [PATCH] D93025: [libc++] Fix invalid use of `_LIBCPP_STD_VER >= 11`, as `_LIBCPP_STD_VER` can never be less than 11.

Marek Kurdej via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 10 06:37:03 PST 2020


curdeius updated this revision to Diff 310874.
curdeius added a comment.

Remove unnecessary #if altogether.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93025/new/

https://reviews.llvm.org/D93025

Files:
  libcxx/include/atomic


Index: libcxx/include/atomic
===================================================================
--- libcxx/include/atomic
+++ libcxx/include/atomic
@@ -1503,8 +1503,6 @@
     using __cxx_contention_t = int64_t;
 #endif //__linux__
 
-#if _LIBCPP_STD_VER >= 11
-
 using __cxx_atomic_contention_t = __cxx_atomic_impl<__cxx_contention_t>;
 
 #ifndef _LIBCPP_HAS_NO_PLATFORM_WAIT
@@ -1582,8 +1580,6 @@
     return __cxx_atomic_wait(__a, __test_fn);
 }
 
-#endif //_LIBCPP_STD_VER >= 11
-
 // general atomic<T>
 
 template <class _Tp, bool = is_integral<_Tp>::value && !is_same<_Tp, bool>::value>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93025.310874.patch
Type: text/x-patch
Size: 593 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20201210/4f4227ff/attachment.bin>


More information about the libcxx-commits mailing list