This is an archive of the discontinued LLVM Phabricator instance.

[BOLT][DWARF] Fix handling of CUs without TU reference
ClosedPublic

Authored by ayermolo on Apr 17 2023, 5:21 PM.

Details

Summary

When input is DWP with DWARF5 bolt wasn't handling correctly CUs that didn't
have TU references. Which resulted in a crash.

Diff Detail

Event Timeline

ayermolo created this revision.Apr 17 2023, 5:21 PM
Herald added a reviewer: Amir. · View Herald Transcript
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
ayermolo requested review of this revision.Apr 17 2023, 5:21 PM
Herald added a project: Restricted Project. · View Herald Transcript
ayermolo updated this revision to Diff 514476.Apr 17 2023, 5:27 PM

Added code + command used to generate helper file.

maksfb accepted this revision.Apr 17 2023, 5:43 PM

LGTM. Remove “Summary:” from the title before committing.

This revision is now accepted and ready to land.Apr 17 2023, 5:43 PM
ayermolo retitled this revision from [BOLT][DWARF] Fix handling of CUs without TU reference Summary: to [BOLT][DWARF] Fix handling of CUs without TU reference.Apr 17 2023, 5:47 PM
This revision was automatically updated to reflect the committed changes.