From 28c02db8d76d5b9b9874c8347b4697bec29595b6 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Wed, 9 Dec 2015 22:32:36 +0000 Subject: [PATCH] Add 3 more missing inline/visibility attributes. These are the cases when an out-of-class definition of a method is marked _LIBCPP_INLINE_VISIBILITY, but the in-class declaration is not. This will start failing when (or if) we switch to attribute((internal_linkage)). git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@255166 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/bitset | 1 + include/memory | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/bitset b/include/bitset index b7d95a81..87d7afca 100644 --- a/include/bitset +++ b/include/bitset @@ -202,6 +202,7 @@ protected: private: #ifdef _LIBCPP_HAS_NO_CONSTEXPR void __init(unsigned long long __v, false_type) _NOEXCEPT; + _LIBCPP_INLINE_VISIBILITY void __init(unsigned long long __v, true_type) _NOEXCEPT; #endif // _LIBCPP_HAS_NO_CONSTEXPR unsigned long to_ulong(false_type) const; diff --git a/include/memory b/include/memory index bd616726..65369d26 100644 --- a/include/memory +++ b/include/memory @@ -3995,6 +3995,7 @@ public: is_convertible<_Yp*, element_type*>::value, shared_ptr& >::type + _LIBCPP_INLINE_VISIBILITY operator=(auto_ptr<_Yp> __r); #endif template @@ -4008,6 +4009,7 @@ public: _LIBCPP_INLINE_VISIBILITY operator=(unique_ptr<_Yp, _Dp>&& __r); #else // _LIBCPP_HAS_NO_RVALUE_REFERENCES + _LIBCPP_INLINE_VISIBILITY operator=(unique_ptr<_Yp, _Dp> __r); #endif