From 65d4d5e9e7bb06153ffd9de9b7ad7a1a676d36fc Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 25 Apr 2019 20:00:06 +0000 Subject: [PATCH] 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 --- libcxx/include/__mutex_base | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/include/__mutex_base b/libcxx/include/__mutex_base index 008be95..0c34a3b 100644 --- a/libcxx/include/__mutex_base +++ b/libcxx/include/__mutex_base @@ -51,7 +51,7 @@ public: #else mutex() _NOEXCEPT {__m_ = (__libcpp_mutex_t)_LIBCPP_MUTEX_INITIALIZER;} #endif - ~mutex(); + ~mutex() _NOEXCEPT; private: mutex(const mutex&);// = delete; -- 2.7.4