Skip to content

Commit 688ba28

Browse files
committed
[libc++] Fix usage of 'exclude_from_explicit_instantiation' attribute on local class members
1 parent 97c60d6 commit 688ba28

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

libcxx/include/__memory/uses_allocator_construction.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,20 +184,18 @@ __uses_allocator_construction_args(const _Alloc& __alloc, _Type&& __value) noexc
184184
struct __pair_constructor {
185185
using _PairMutable = remove_cv_t<_Pair>;
186186

187-
_LIBCPP_HIDE_FROM_ABI constexpr auto __do_construct(const _PairMutable& __pair) const {
187+
_LIBCPP_HIDDEN constexpr auto __do_construct(const _PairMutable& __pair) const {
188188
return std::__make_obj_using_allocator<_PairMutable>(__alloc_, __pair);
189189
}
190190

191-
_LIBCPP_HIDE_FROM_ABI constexpr auto __do_construct(_PairMutable&& __pair) const {
191+
_LIBCPP_HIDDEN constexpr auto __do_construct(_PairMutable&& __pair) const {
192192
return std::__make_obj_using_allocator<_PairMutable>(__alloc_, std::move(__pair));
193193
}
194194

195195
const _Alloc& __alloc_;
196196
_Type& __value_;
197197

198-
_LIBCPP_HIDE_FROM_ABI constexpr operator _PairMutable() const {
199-
return __do_construct(std::forward<_Type>(this->__value_));
200-
}
198+
_LIBCPP_HIDDEN constexpr operator _PairMutable() const { return __do_construct(std::forward<_Type>(__value_)); }
201199
};
202200

203201
return std::make_tuple(__pair_constructor{__alloc, __value});

libcxx/include/variant

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,8 +909,8 @@ protected:
909909
__a.__value = std::forward<_Arg>(__arg);
910910
} else {
911911
struct {
912-
_LIBCPP_HIDE_FROM_ABI void operator()(true_type) const { __this->__emplace<_Ip>(std::forward<_Arg>(__arg)); }
913-
_LIBCPP_HIDE_FROM_ABI void operator()(false_type) const {
912+
_LIBCPP_HIDDEN void operator()(true_type) const { __this->__emplace<_Ip>(std::forward<_Arg>(__arg)); }
913+
_LIBCPP_HIDDEN void operator()(false_type) const {
914914
__this->__emplace<_Ip>(_Tp(std::forward<_Arg>(__arg)));
915915
}
916916
__assignment* __this;

0 commit comments

Comments
 (0)