Skip to content

Commit cb9e307

Browse files
committed
Do not generate information for DWO ID 0
1 parent f1d8899 commit cb9e307

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bolt/lib/Core/BinaryContext.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,6 +1628,8 @@ void BinaryContext::preprocessDWODebugInfo() {
16281628
for (const std::unique_ptr<DWARFUnit> &CU : DwCtx->compile_units()) {
16291629
DWARFUnit *const DwarfUnit = CU.get();
16301630
if (std::optional<uint64_t> DWOId = DwarfUnit->getDWOId()) {
1631+
if (*DWOId == 0)
1632+
continue;
16311633
std::string DWOName = dwarf::toString(
16321634
DwarfUnit->getUnitDIE().find(
16331635
{dwarf::DW_AT_dwo_name, dwarf::DW_AT_GNU_dwo_name}),

0 commit comments

Comments
 (0)