This is an archive of the discontinued LLVM Phabricator instance.

[ASTMatchers] Don't forward matchers in MapAnyOf
ClosedPublic

Authored by njames93 on Mar 12 2021, 5:52 AM.

Details

Summary

Forwarding these means that if an r-value reference is passed, the matcher will be moved. However it appears this happens for each mapped node matcher, resulting in use-after-move issues.

Diff Detail

Event Timeline

njames93 requested review of this revision.Mar 12 2021, 5:52 AM
njames93 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMar 12 2021, 5:52 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
steveire accepted this revision.Mar 14 2021, 7:11 AM
This revision is now accepted and ready to land.Mar 14 2021, 7:11 AM
This revision was automatically updated to reflect the committed changes.