[libcxx] r271235 - Cleanup error handling when TLS creation fails
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Mon May 30 16:15:19 PDT 2016
Author: ericwf
Date: Mon May 30 18:15:19 2016
New Revision: 271235
URL: http://llvm.org/viewvc/llvm-project?rev=271235&view=rev
Log:
Cleanup error handling when TLS creation fails
Modified:
libcxx/trunk/include/thread
Modified: libcxx/trunk/include/thread
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/thread?rev=271235&r1=271234&r2=271235&view=diff
==============================================================================
--- libcxx/trunk/include/thread (original)
+++ libcxx/trunk/include/thread Mon May 30 18:15:19 2016
@@ -176,11 +176,9 @@ __thread_specific_ptr<_Tp>::__thread_spe
int __ec = __libcpp_tl_create(
&__key_,
&__thread_specific_ptr::__at_thread_exit);
-#ifndef _LIBCPP_NO_EXCEPTIONS
if (__ec)
- throw system_error(error_code(__ec, system_category()),
+ __throw_system_error(__ec,
"__thread_specific_ptr construction failed");
-#endif
}
template <class _Tp>
More information about the cfe-commits
mailing list