This is an archive of the discontinued LLVM Phabricator instance.

[lld/mac] Add test for bug fixed in reland 82ca390062d115
ClosedPublic

Authored by thakis on Oct 13 2022, 8:46 AM.

Details

Reviewers
int3
Group Reviewers
Restricted Project
Commits
rG3ab947ede034: [lld/mac] Add test for bug fixed in reland 82ca390062d115

Diff Detail

Event Timeline

thakis created this revision.Oct 13 2022, 8:46 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 13 2022, 8:46 AM
thakis requested review of this revision.Oct 13 2022, 8:46 AM
int3 accepted this revision.Oct 13 2022, 8:51 AM
int3 added a subscriber: int3.
int3 added inline comments.
lld/test/MachO/undef-spell-corrector.s
91–93

what was the bug? could we have a comment explaining why this debug section was added to the test?

This revision is now accepted and ready to land.Oct 13 2022, 8:51 AM

Thanks!

lld/test/MachO/undef-spell-corrector.s
91–93

This causes ObjFile::symbols to contain a nullptr. The original patch used dyn_cast for all symbols in ObjFile::symbols. The fix was to use dyn_cast_or_null.

Will add a comment.

This revision was landed with ongoing or failed builds.Oct 13 2022, 9:54 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2022, 9:54 AM