From 98b6a6309f8fa57877c398016255e71e8b69bc18 Mon Sep 17 00:00:00 2001 From: Mark Mentovai Date: Mon, 26 Sep 2016 09:40:19 -0400 Subject: [PATCH] Fix dump_syms for C++ after 7398ce15b79d Change-Id: Ifb56d41d8c5c6e766dee459157e1345553088e2a Reviewed-on: https://chromium-review.googlesource.com/389411 Reviewed-by: Ted Mielczarek --- src/common/language.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/language.cc b/src/common/language.cc index 3a598f69..087395e9 100644 --- a/src/common/language.cc +++ b/src/common/language.cc @@ -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) {