[all-commits] [llvm/llvm-project] 74c270: [ASTMatchers] Don't forward matchers in MapAnyOf
Nathan James via All-commits
all-commits at lists.llvm.org
Mon Mar 15 07:17:24 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 74c270f33eb16d336b4ab834e18b27f8efcbabe8
https://github.com/llvm/llvm-project/commit/74c270f33eb16d336b4ab834e18b27f8efcbabe8
Author: Nathan James <n.james93 at hotmail.co.uk>
Date: 2021-03-15 (Mon, 15 Mar 2021)
Changed paths:
M clang/include/clang/ASTMatchers/ASTMatchersInternal.h
Log Message:
-----------
[ASTMatchers] Don't forward matchers in MapAnyOf
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.
Reviewed By: steveire
Differential Revision: https://reviews.llvm.org/D98497
More information about the All-commits
mailing list