diff options
| author | Howard Hinnant <hhinnant@apple.com> | 2013-03-28 15:00:04 +0000 |
|---|---|---|
| committer | Howard Hinnant <hhinnant@apple.com> | 2013-03-28 15:00:04 +0000 |
| commit | a4d35ce2bffaa29664ea19b0dfd97595978def3e (patch) | |
| tree | f4b22a13d217ffa9c551e4d78594c0b6e0d5dd31 | |
| parent | 08bb3ce3834afbbd367e38af55c3006dfcdb2396 (diff) | |
| download | bcm5719-llvm-a4d35ce2bffaa29664ea19b0dfd97595978def3e.tar.gz bcm5719-llvm-a4d35ce2bffaa29664ea19b0dfd97595978def3e.zip | |
Add missing #ifndef _LIBCPP_NO_EXCEPTIONS around throw in include/thread.
llvm-svn: 178237
| -rw-r--r-- | libcxx/include/thread | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/include/thread b/libcxx/include/thread index e21a09fff03..8d3aab2ae6f 100644 --- a/libcxx/include/thread +++ b/libcxx/include/thread @@ -144,9 +144,11 @@ template <class _Tp> __thread_specific_ptr<_Tp>::__thread_specific_ptr() { int __ec = pthread_key_create(&__key_, &__thread_specific_ptr::__at_thread_exit); +#ifndef _LIBCPP_NO_EXCEPTIONS if (__ec) throw system_error(error_code(__ec, system_category()), "__thread_specific_ptr construction failed"); +#endif } template <class _Tp> |

