[libcxx-commits] [libcxx] e79474d - [libc++][NFC] Add missing HIDE_FROM_ABI on implementation detail __launder

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 31 07:29:36 PDT 2021


Author: Louis Dionne
Date: 2021-08-31T10:29:29-04:00
New Revision: e79474d337c62de7d3efe7fc2504ade46eda10e8

URL: https://github.com/llvm/llvm-project/commit/e79474d337c62de7d3efe7fc2504ade46eda10e8
DIFF: https://github.com/llvm/llvm-project/commit/e79474d337c62de7d3efe7fc2504ade46eda10e8.diff

LOG: [libc++][NFC] Add missing HIDE_FROM_ABI on implementation detail __launder

Added: 
    

Modified: 
    libcxx/include/new

Removed: 
    


################################################################################
diff  --git a/libcxx/include/new b/libcxx/include/new
index aefc08c161ca..d334d765804b 100644
--- a/libcxx/include/new
+++ b/libcxx/include/new
@@ -332,7 +332,7 @@ void __libcpp_aligned_free(void* __ptr) {
 
 
 template <class _Tp>
-_LIBCPP_NODISCARD_AFTER_CXX17 inline
+_LIBCPP_NODISCARD_AFTER_CXX17 inline _LIBCPP_HIDE_FROM_ABI
 _LIBCPP_CONSTEXPR _Tp* __launder(_Tp* __p) _NOEXCEPT
 {
     static_assert (!(is_function<_Tp>::value), "can't launder functions" );
@@ -344,10 +344,9 @@ _LIBCPP_CONSTEXPR _Tp* __launder(_Tp* __p) _NOEXCEPT
 #endif
 }
 
-
 #if _LIBCPP_STD_VER > 14
 template <class _Tp>
-_LIBCPP_NODISCARD_AFTER_CXX17 inline _LIBCPP_INLINE_VISIBILITY
+_LIBCPP_NODISCARD_AFTER_CXX17 inline _LIBCPP_HIDE_FROM_ABI
 constexpr _Tp* launder(_Tp* __p) noexcept
 {
     return _VSTD::__launder(__p);


        


More information about the libcxx-commits mailing list