This is an archive of the discontinued LLVM Phabricator instance.

[NFCI] Remove unneeded std::forward
Needs ReviewPublic

Authored by ychen on Jul 21 2020, 3:23 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Found out when discussing D83902

When the return value of forward is rvalue, we get a const iterator out of std::begin/end, which is not expected.

Diff Detail

Event Timeline

ychen created this revision.Jul 21 2020, 3:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 21 2020, 3:23 PM
ychen edited the summary of this revision. (Show Details)Jul 21 2020, 3:27 PM