Skip to content

Commit

Permalink
[lldb][DWARF] Do not complete type from declaration die. (#91799)
Browse files Browse the repository at this point in the history
Fix the problem:
#90663 (comment)
by enhancing a double-check for #90663
  • Loading branch information
ZequanWu authored May 10, 2024
1 parent e9f53e4 commit a7eff59
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2345,6 +2345,11 @@ bool DWARFASTParserClang::CompleteTypeFromDWARF(const DWARFDIE &die,

if (!die)
return false;
ParsedDWARFTypeAttributes attrs(die);
bool is_forward_declaration = IsForwardDeclaration(
die, attrs, SymbolFileDWARF::GetLanguage(*die.GetCU()));
if (is_forward_declaration)
return false;

const dw_tag_t tag = die.Tag();

Expand Down

0 comments on commit a7eff59

Please sign in to comment.