Fix dump_syms for C++ after 7398ce15b7

Change-Id: Ifb56d41d8c5c6e766dee459157e1345553088e2a
Reviewed-on: https://chromium-review.googlesource.com/389411
Reviewed-by: Ted Mielczarek <ted@mielczarek.org>
This commit is contained in:
Mark Mentovai 2016-09-26 09:40:19 -04:00 committed by Ted Mielczarek
parent 7398ce15b7
commit 98b6a6309f

View file

@ -82,10 +82,10 @@ class CPPLanguage: public Language {
DemangleResult result;
if (status == 0) {
result = kDemangleSuccess;
demangled->clear();
demangled->assign(demangled_c);
} else {
result = kDemangleFailure;
demangled->assign(demangled_c);
demangled->clear();
}
if (demangled_c) {