Added [[noreturn]] attribute everywhere it should be

llvm-svn: 132125
This commit is contained in:
Howard Hinnant
2011-05-26 17:07:32 +00:00
parent 6dc03b36d7
commit 400b244339
3 changed files with 17 additions and 11 deletions

View File

@@ -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();