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> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits