Skip to content

Commit 48b7068

Browse files
committed
[libc++] Mark __call_once_proxy as hidden and internal
We effectively never want to export that function, which is an implementation detail of libc++. This was previously tried in 603715c and then reverted in 8335dd3 because it caused linker warnings. These linker warnings should go away now that we use internal_linkage instead of always_inline to implement per-TU insulation.
1 parent abbbf98 commit 48b7068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/mutex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ public:
650650
#endif
651651

652652
template <class _Fp>
653-
void
653+
void _LIBCPP_INLINE_VISIBILITY
654654
__call_once_proxy(void* __vp)
655655
{
656656
__call_once_param<_Fp>* __p = static_cast<__call_once_param<_Fp>*>(__vp);

0 commit comments

Comments
 (0)