From d437fa5c8c1185af695b87cdd5ea83aa4a6e7382 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Thu, 25 Aug 2016 15:09:01 +0000 Subject: Add an _LIBCPP_NORETURN inline function named __throw_XXX for each exception type we define. They either construct and throw the exception, or abort() (if exceptions are disabled). Use these functions everywhere instead of assert()ing when exceptions are disabled. WARNING: This is a behavior change - but only with exceptions disabled. Reviewed as: https://reviews.llvm.org/D23855. llvm-svn: 279744 --- libcxx/src/string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcxx/src/string.cpp') diff --git a/libcxx/src/string.cpp b/libcxx/src/string.cpp index d3f29df639f..76d5caca549 100644 --- a/libcxx/src/string.cpp +++ b/libcxx/src/string.cpp @@ -40,7 +40,7 @@ void throw_helper( const string& msg ) throw T( msg ); #else fprintf(stderr, "%s\n", msg.c_str()); - abort(); + _VSTD::abort(); #endif } -- cgit v1.2.3