summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support/demangle.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/support/demangle.h')
-rw-r--r--libcxx/test/support/demangle.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/libcxx/test/support/demangle.h b/libcxx/test/support/demangle.h
index 41761fd420e..98d93c85ad7 100644
--- a/libcxx/test/support/demangle.h
+++ b/libcxx/test/support/demangle.h
@@ -34,9 +34,7 @@ inline std::string demangle(const char* mangled_name) {
template <size_t N> struct Printer;
inline std::string demangle(const char* mangled_name) {
int status = 0;
- std::string input(mangled_name);
- input.insert(0, "_Z");
- char* out = __cxxabiv1::__cxa_demangle(input.c_str(), nullptr, nullptr, &status);
+ char* out = __cxxabiv1::__cxa_demangle(mangled_name, nullptr, nullptr, &status);
if (out != nullptr) {
std::string res(out);
std::free(out);
OpenPOWER on IntegriCloud