summaryrefslogtreecommitdiffstats
path: root/libcxxabi/src/cxa_exception.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxxabi/src/cxa_exception.cpp')
-rw-r--r--libcxxabi/src/cxa_exception.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxxabi/src/cxa_exception.cpp b/libcxxabi/src/cxa_exception.cpp
index 9df0564bd0d..2ee146ab28b 100644
--- a/libcxxabi/src/cxa_exception.cpp
+++ b/libcxxabi/src/cxa_exception.cpp
@@ -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);
OpenPOWER on IntegriCloud