From fe73d36f2326060ad4e8059cf9e18619084df5b3 Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Sun, 8 Mar 2020 00:38:30 -0500 Subject: [PATCH] Fix lldb build failure due to clang mangler change --- lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp index 3b8c058..47f1a85 100644 --- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp +++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp @@ -8843,11 +8843,15 @@ ConstString TypeSystemClang::DeclGetMangledName(void *opaque_decl) { llvm::SmallVector buf; llvm::raw_svector_ostream llvm_ostrm(buf); if (llvm::isa(nd)) { - mc->mangleCXXCtor(llvm::dyn_cast(nd), - Ctor_Complete, llvm_ostrm); + mc->mangleName( + clang::GlobalDecl(llvm::dyn_cast(nd), + Ctor_Complete), + llvm_ostrm); } else if (llvm::isa(nd)) { - mc->mangleCXXDtor(llvm::dyn_cast(nd), - Dtor_Complete, llvm_ostrm); + mc->mangleName( + clang::GlobalDecl(llvm::dyn_cast(nd), + Dtor_Complete), + llvm_ostrm); } else { mc->mangleName(nd, llvm_ostrm); } -- 2.7.4