Skip to content

Commit 448888c

Browse files
committed
[dsymutil] Fix parallel linker's self-recursive typedef DIE by adding ref type name
1 parent d584d00 commit 448888c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/lib/DWARFLinker/Parallel/SyntheticTypeNameBuilder.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,10 @@ Error SyntheticTypeNameBuilder::addTypeName(UnitEntryPairTy InputUnitEntryPair,
377377
} break;
378378
}
379379

380-
// If name for the DIE is not determined yet add referenced types to the name.
381-
if (!HasLinkageName && !HasShortName && !HasDeclFileName) {
380+
// If name for the DIE is not determined yet or if the DIE is a typedef, add
381+
// referenced types to the name.
382+
if ((!HasLinkageName && !HasShortName && !HasDeclFileName) ||
383+
InputUnitEntryPair.DieEntry->getTag() == dwarf::DW_TAG_typedef) {
382384
if (InputUnitEntryPair.CU->find(InputUnitEntryPair.DieEntry,
383385
getODRAttributes()))
384386
if (Error Err = addReferencedODRDies(InputUnitEntryPair, AddParentNames,

0 commit comments

Comments
 (0)