Skip to content

Commit fec4700

Browse files
committed
[dsymutil] Fix parallel linker so it won't generate self-recurrisve typedef DIE
1 parent d584d00 commit fec4700

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/DWARFLinker/Parallel/SyntheticTypeNameBuilder.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,11 @@ Error SyntheticTypeNameBuilder::addTypeName(UnitEntryPairTy InputUnitEntryPair,
372372
addValueName(InputUnitEntryPair, dwarf::DW_AT_const_value);
373373
}
374374
} break;
375+
case dwarf::DW_TAG_typedef: {
376+
// Add decl file and line if haven't already.
377+
if (!HasDeclFileName)
378+
addDieNameFromDeclFileAndDeclLine(InputUnitEntryPair, HasDeclFileName);
379+
} break;
375380
default: {
376381
// Nothing to do.
377382
} break;

0 commit comments

Comments
 (0)