Skip to content

Commit a7eff59

Browse files
authored
[lldb][DWARF] Do not complete type from declaration die. (#91799)
Fix the problem: #90663 (comment) by enhancing a double-check for #90663
1 parent e9f53e4 commit a7eff59

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -2345,6 +2345,11 @@ bool DWARFASTParserClang::CompleteTypeFromDWARF(const DWARFDIE &die,
23452345

23462346
if (!die)
23472347
return false;
2348+
ParsedDWARFTypeAttributes attrs(die);
2349+
bool is_forward_declaration = IsForwardDeclaration(
2350+
die, attrs, SymbolFileDWARF::GetLanguage(*die.GetCU()));
2351+
if (is_forward_declaration)
2352+
return false;
23482353

23492354
const dw_tag_t tag = die.Tag();
23502355

0 commit comments

Comments
 (0)