diff options
Diffstat (limited to 'libcxx/src/exception.cpp')
-rw-r--r-- | libcxx/src/exception.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libcxx/src/exception.cpp b/libcxx/src/exception.cpp index 4d4caf4b5ce..42d0721c5ac 100644 --- a/libcxx/src/exception.cpp +++ b/libcxx/src/exception.cpp @@ -35,6 +35,7 @@ std::get_unexpected() throw() return __sync_fetch_and_add(&__unexpected_handler, (std::unexpected_handler)0); } +_ATTRIBUTE(noreturn) void std::unexpected() { @@ -56,7 +57,7 @@ std::get_terminate() throw() } void -std::terminate() +std::terminate() _NOEXCEPT { #ifndef _LIBCPP_NO_EXCEPTIONS try @@ -156,8 +157,9 @@ nested_exception::~nested_exception() { } +_ATTRIBUTE(noreturn) void -nested_exception::rethrow_nested /*[[noreturn]]*/ () const +nested_exception::rethrow_nested() const { if (__ptr_ == nullptr) terminate(); |