summaryrefslogtreecommitdiffstats
path: root/third_party/libc++-static/libcxxabi.patch
blob: dfdf7662ac8dc4c455fb3491a74d9a407016bca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- src/cxa_default_handlers.cpp    (revision 245965)
+++ src/cxa_default_handlers.cpp    (working copy)
@@ -46,13 +46,7 @@
                         exception_header + 1;
                 const __shim_type_info* thrown_type =
                     static_cast<const __shim_type_info*>(exception_header->exceptionType);
-                // Try to get demangled name of thrown_type
-                int status;
-                char buf[1024];
-                size_t len = sizeof(buf);
-                const char* name = __cxa_demangle(thrown_type->name(), buf, &len, &status);
-                if (status != 0)
-                    name = thrown_type->name();
+                const char* name = thrown_type->name();
                 // If the uncaught exception can be caught with std::exception&
                 const __shim_type_info* catch_type =
 				 static_cast<const __shim_type_info*>(&typeid(std::exception));