summaryrefslogtreecommitdiff
path: root/src/typeinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/typeinfo.cpp')
-rw-r--r--src/typeinfo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/typeinfo.cpp b/src/typeinfo.cpp
index 5c0a609b5e5c..3033c9800f18 100644
--- a/src/typeinfo.cpp
+++ b/src/typeinfo.cpp
@@ -54,12 +54,16 @@ std::bad_typeid::what() const _NOEXCEPT
{
#ifndef _LIBCPP_NO_EXCEPTIONS
throw std::bad_typeid();
+#else
+ _VSTD::abort();
#endif
}
void __cxxabiv1::__cxa_bad_cast()
{
#ifndef _LIBCPP_NO_EXCEPTIONS
throw std::bad_cast();
+#else
+ _VSTD::abort();
#endif
}
#endif