This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Fix MapLattice::insert() to not drop return value
ClosedPublic

Authored by li.zhe.hua on Jul 25 2022, 9:22 AM.

Details

Summary

Fix MapLattice API to return std::pair<iterator, bool>,
allowing users to detect when an element has been inserted without
performing a redundant map lookup.

Diff Detail

Event Timeline

li.zhe.hua created this revision.Jul 25 2022, 9:22 AM
Herald added a project: Restricted Project. · View Herald Transcript
li.zhe.hua requested review of this revision.Jul 25 2022, 9:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 25 2022, 9:22 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
xazax.hun accepted this revision.Jul 25 2022, 9:48 AM
This revision is now accepted and ready to land.Jul 25 2022, 9:48 AM
This revision was landed with ongoing or failed builds.Jul 25 2022, 11:25 AM
This revision was automatically updated to reflect the committed changes.