This is an archive of the discontinued LLVM Phabricator instance.

Make pthread's __libcpp_get_tls declaration consistent
Needs ReviewPublic

Authored by pirama on Jun 28 2018, 2:32 PM.

Details

Summary

Add the _LIBCPP_TLS_DESTRUCTOR_CC attribute to the at_exit parameter
for the pthread definition of
libcpp_get_tls. This makes it
consistent with the rest (the non-pthread declaration in
include/__threading_support, and calls in include/thread and
srcsrc/support/win32/thread_win32.cpp).

This has NFC because _LIBCPP_TLS_DESTRUCTOR_CC is empty when pthread is
available.