Added [[noreturn]] attribute everywhere it should be
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@132125 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user