[Lldb-commits] [lldb] 2c2feeb - [lldb] Fix TypeSystemClang compilation after D101777
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 7 09:45:43 PDT 2021
Author: Raphael Isemann
Date: 2021-06-07T18:45:04+02:00
New Revision: 2c2feebcd1274425c853e3cff7cec6ba033c3ccd
URL: https://github.com/llvm/llvm-project/commit/2c2feebcd1274425c853e3cff7cec6ba033c3ccd
DIFF: https://github.com/llvm/llvm-project/commit/2c2feebcd1274425c853e3cff7cec6ba033c3ccd.diff
LOG: [lldb] Fix TypeSystemClang compilation after D101777
We apparently now need to pass the DeclName of the target decl to the
constructor.
Added:
Modified:
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
index 9bc8837eada63..3ffc5d2870b8a 100644
--- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
+++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
@@ -1867,8 +1867,8 @@ TypeSystemClang::CreateUsingDeclaration(clang::DeclContext *current_decl_ctx,
clang::NestedNameSpecifierLoc(), clang::DeclarationNameInfo(), false);
SetOwningModule(using_decl, owning_module);
clang::UsingShadowDecl *shadow_decl = clang::UsingShadowDecl::Create(
- getASTContext(), current_decl_ctx, clang::SourceLocation(), using_decl,
- target);
+ getASTContext(), current_decl_ctx, clang::SourceLocation(),
+ target->getDeclName(), using_decl, target);
SetOwningModule(shadow_decl, owning_module);
using_decl->addShadowDecl(shadow_decl);
current_decl_ctx->addDecl(using_decl);
More information about the lldb-commits
mailing list