summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/ASTMatchers/ASTMatchersInternal.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/ASTMatchers/ASTMatchersInternal.cpp b/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
index c8e5852475c..9d77cb65767 100644
--- a/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
+++ b/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
@@ -99,8 +99,8 @@ DynTypedMatcher DynTypedMatcher::constructVariadic(
// The different operators might deal differently with a mismatch.
// Make it the same as SupportedKind, since that is the broadest type we are
// allowed to accept.
- return DynTypedMatcher(InnerMatchers[0].SupportedKind,
- InnerMatchers[0].SupportedKind,
+ auto SupportedKind = InnerMatchers[0].SupportedKind;
+ return DynTypedMatcher(SupportedKind, SupportedKind,
new VariadicMatcher(Func, std::move(InnerMatchers)));
}
OpenPOWER on IntegriCloud