Skip to content

Commit cfe98a3

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/DWARFLinker/Parallel/SyntheticTypeNameBuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,8 @@ 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 referenced types to the name.
381+
if ((!HasLinkageName && !HasShortName && !HasDeclFileName) || InputUnitEntryPair.DieEntry->getTag() == dwarf::DW_TAG_typedef) {
382382
if (InputUnitEntryPair.CU->find(InputUnitEntryPair.DieEntry,
383383
getODRAttributes()))
384384
if (Error Err = addReferencedODRDies(InputUnitEntryPair, AddParentNames,

0 commit comments

Comments
 (0)