This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] prefer std::set to std::map
AbandonedPublic

Authored by nickdesaulniers on May 19 2019, 8:26 PM.

Details

Reviewers
sabuasal
asb
Summary

This was flagged in https://www.viva64.com/en/b/0629/ under "Snippet No.
21".

It seems that a std::map is created, but only the keys are ever used.


< It looks like you meant to use a set >


\

\
   __
  /  \
  |  |
  @  @
  |  |
  || |/
  || ||
  |\_/|
  \___/

Yes we did! Thanks Clippy! (yay!)

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2019, 8:27 PM

Looks like this has already been addressed in D61412!

nickdesaulniers abandoned this revision.May 20 2019, 9:25 AM