This is an archive of the discontinued LLVM Phabricator instance.

[llvm/Object] Reimplment basic_symbol_iterator in TapiFile
ClosedPublic

Authored by JDevlieghere on Jun 11 2020, 11:47 PM.

Details

Summary

Use indices into the Symbols vector instead of dereferencing std::vector::end().

NFC modulo the Windows failure: http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win/builds/24024

Diff Detail

Event Timeline

JDevlieghere created this revision.Jun 11 2020, 11:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 11 2020, 11:47 PM
cishida accepted this revision.Jun 11 2020, 11:53 PM

Thanks for fixing this! one nit but LGTM

llvm/lib/Object/TapiFile.cpp
81–83

nit: maybe add a message to notify an out of bounds access?

88–89

same here

This revision is now accepted and ready to land.Jun 11 2020, 11:53 PM
This revision was automatically updated to reflect the committed changes.
JDevlieghere marked 2 inline comments as done.