summaryrefslogtreecommitdiffstats
path: root/libcxx/src/exception.cpp
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-05-26 17:07:32 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-05-26 17:07:32 +0000
commit400b244339a577b4c48aca7f42a3f22f38fd3d17 (patch)
treed7b6ddada102da56ab3024e87870e8f964bb11fa /libcxx/src/exception.cpp
parent6dc03b36d7a84106dc62e0a3b0e16148a8dc556a (diff)
downloadbcm5719-llvm-400b244339a577b4c48aca7f42a3f22f38fd3d17.tar.gz
bcm5719-llvm-400b244339a577b4c48aca7f42a3f22f38fd3d17.zip
Added [[noreturn]] attribute everywhere it should be
llvm-svn: 132125
Diffstat (limited to 'libcxx/src/exception.cpp')
-rw-r--r--libcxx/src/exception.cpp6
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();
OpenPOWER on IntegriCloud