Don't allocate TLS storage when checking to see if an exception has been thrown - really

llvm-svn: 147497
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: f83663a9cd23ea9ef4670f89a130ed649585c34e
diff --git a/src/cxa_exception.cpp b/src/cxa_exception.cpp
index 1887c5a..a011dd0 100644
--- a/src/cxa_exception.cpp
+++ b/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;