Make make_exception_ptr abort with -fno-exceptions
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@288575 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -79,6 +79,7 @@ template <class E> void rethrow_if_nested(const E& e);
|
|||||||
|
|
||||||
#include <__config>
|
#include <__config>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
#include <cstdlib>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||||
@@ -161,7 +162,9 @@ make_exception_ptr(_Ep __e) _NOEXCEPT
|
|||||||
{
|
{
|
||||||
return current_exception();
|
return current_exception();
|
||||||
}
|
}
|
||||||
#endif // _LIBCPP_NO_EXCEPTIONS
|
#else
|
||||||
|
_VSTD::abort();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// nested_exception
|
// nested_exception
|
||||||
|
|||||||
Reference in New Issue
Block a user