Forgot to increment uncaughtExceptions in __cxa_rethrow_primary_exception

llvm-svn: 147108
This commit is contained in:
Howard Hinnant 2011-12-21 23:48:05 +00:00
parent 960534c866
commit 22f28b2d52
1 changed files with 1 additions and 0 deletions

View File

@ -434,6 +434,7 @@ __cxa_rethrow_primary_exception(void* thrown_object)
deh->unexpectedHandler = std::get_unexpected();
deh->terminateHandler = std::get_terminate();
setDependentExceptionClass(&deh->unwindHeader);
__cxa_get_globals()->uncaughtExceptions += 1;
deh->unwindHeader.exception_cleanup = dependent_exception_cleanup;
#if __arm__
_Unwind_SjLj_RaiseException(&deh->unwindHeader);