Forgot to increment uncaughtExceptions in __cxa_rethrow_primary_exception
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@147108 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/src/cxa_exception.cpp b/src/cxa_exception.cpp
index 9df0564..2ee146a 100644
--- a/src/cxa_exception.cpp
+++ b/src/cxa_exception.cpp
@@ -434,6 +434,7 @@
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);