This is an archive of the discontinued LLVM Phabricator instance.

[Object][MachO] Handle end iterator in getSymbolType()
ClosedPublic

Authored by steven_wu on Mar 16 2021, 1:24 PM.

Details

Summary

Fix a bug in MachOObjectFile::getSymbolType() that it is not checking if
the iterator is end() before deference the iterator. Instead, return
Other type, which aligns with the behavior of llvm-nm.

rdar://75291638

Diff Detail

Event Timeline

steven_wu created this revision.Mar 16 2021, 1:24 PM
steven_wu requested review of this revision.Mar 16 2021, 1:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2021, 1:24 PM
ab accepted this revision.Mar 17 2021, 12:36 PM
This revision is now accepted and ready to land.Mar 17 2021, 12:36 PM
davide accepted this revision.Mar 17 2021, 12:37 PM

Sure.

This revision was automatically updated to reflect the committed changes.