Import new fix from libcxxrt. This fixes the case where you attempt to rethrow
an exception when you haven't caught one. This is largely a cosmetic fix, as (unless you have a very unusual terminate handler installed) it will print a nice error and then abort, rather than just aborting. MFC after: 7 days
This commit is contained in:
commit
d5861eaae8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245745
@ -801,7 +801,7 @@ extern "C" void __cxa_decrement_exception_refcount(void* thrown_exception)
|
||||
*/
|
||||
extern "C" void __cxa_rethrow()
|
||||
{
|
||||
__cxa_thread_info *ti = thread_info_fast();
|
||||
__cxa_thread_info *ti = thread_info();
|
||||
__cxa_eh_globals *globals = &ti->globals;
|
||||
// Note: We don't remove this from the caught list here, because
|
||||
// __cxa_end_catch will be called when we unwind out of the try block. We
|
||||
|
Loading…
Reference in New Issue
Block a user