Forgot to increment uncaughtExceptions in __cxa_rethrow_primary_exception

llvm-svn: 147108
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 22f28b2d52f69b75a5606e0d00ca2cc7d3849dc7
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);