Don't allocate TLS storage when checking to see if an exception has been thrown - really
llvm-svn: 147497
diff --git a/libcxxabi/src/cxa_exception.cpp b/libcxxabi/src/cxa_exception.cpp
index 1887c5a..a011dd0 100644
--- a/libcxxabi/src/cxa_exception.cpp
+++ b/libcxxabi/src/cxa_exception.cpp
@@ -386,7 +386,7 @@
__cxa_current_primary_exception() throw()
{
// get the current exception
- __cxa_eh_globals* globals = __cxa_get_globals();
+ __cxa_eh_globals* globals = __cxa_get_globals_fast();
if (NULL == globals)
return NULL; // Never has been an exception
__cxa_exception* current_exception = globals->caughtExceptions;