Merge "[gabi++] Fix bug: Use un-exsited object in uncaught_exception."
diff --git a/sources/cxx-stl/gabi++/src/terminate.cc b/sources/cxx-stl/gabi++/src/terminate.cc
index 576b18a..17435f9 100644
--- a/sources/cxx-stl/gabi++/src/terminate.cc
+++ b/sources/cxx-stl/gabi++/src/terminate.cc
@@ -157,11 +157,7 @@
bool uncaught_exception() throw() {
using namespace __cxxabiv1;
- __cxa_eh_globals* globals = __cxa_get_globals_fast();
- if (!globals) {
- return false;
- }
-
+ __cxa_eh_globals* globals = __cxa_get_globals();
return globals->uncaughtExceptions != 0;
}