[PATCH] Refactor Matcher<T> and DynTypedMatcher to reduce overhead of casts.
Samuel Benzaquen
sbenza at google.com
Thu Sep 25 09:20:16 PDT 2014
================
Comment at: lib/ASTMatchers/ASTMatchersInternal.cpp:95-96
@@ +94,4 @@
+ DynTypedMatcher Result = InnerMatchers[0];
+ // Use the least derived type as the restriction for the wrapper.
+ // This allows mismatch to be resolved on the inner matchers.
+ for (const DynTypedMatcher &M : InnerMatchers) {
----------------
klimek wrote:
> "mismatches" or "a mismatch"?
Fixed.
http://reviews.llvm.org/D5485
More information about the cfe-commits
mailing list