diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-10-02 13:46:17 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-10-02 13:46:17 +0000 |
commit | ef0abdccd13f362a644be09eaab35479aa707def (patch) | |
tree | 59ecb72e14bb2a53c835d8b484c015481b47def6 /source | |
parent | b4664be11e178e75cd851fa4b9a23f234c893ff6 (diff) | |
download | lldb-ef0abdccd13f362a644be09eaab35479aa707def.tar.gz |
[lldb] Fix evaluation of nested classes with parent from other CU
This makes sure that we associate DIEs that are imported from other CUs with the appropriate decl context.
Without this fix, nested classes can be dumped directly into their CU context if their parent was imported from another CU.
Reviewed By: teemperor, labath
Differential Revision: https://reviews.llvm.org/D68278
Patch by Jaroslav Sevcik!
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@373470 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source')
-rw-r--r-- | source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp b/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp index 2b448c7c5..e031618a1 100644 --- a/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp +++ b/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp @@ -691,6 +691,8 @@ TypeSP DWARFASTParserClang::ParseTypeFromDWARF(const SymbolContext &sc, type_sp = unique_ast_entry_up->m_type_sp; if (type_sp) { dwarf->GetDIEToType()[die.GetDIE()] = type_sp.get(); + LinkDeclContextToDIE( + GetCachedClangDeclContextForDIE(unique_ast_entry_up->m_die), die); return type_sp; } } |