Fix buildbot failures after r359159.

std::mutex was not actually is_nothrow_default_constructible in C++98/C++03,
because the variable declaration

  std::mutex M;

... could throw an exception from the mutex destructor. Fix it by marking the
destructor as non-throwing. This has no effect in C++11 onwards, because
destructors are non-throwing by default in those language modes.

llvm-svn: 359229
This commit is contained in:
Richard Smith 2019-04-25 20:00:06 +00:00
parent 3bf8d7639f
commit 65d4d5e9e7
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ public:
#else #else
mutex() _NOEXCEPT {__m_ = (__libcpp_mutex_t)_LIBCPP_MUTEX_INITIALIZER;} mutex() _NOEXCEPT {__m_ = (__libcpp_mutex_t)_LIBCPP_MUTEX_INITIALIZER;}
#endif #endif
~mutex(); ~mutex() _NOEXCEPT;
private: private:
mutex(const mutex&);// = delete; mutex(const mutex&);// = delete;