From a5cf043c4dd6d4065ce42f072f0691578f1d725b Mon Sep 17 00:00:00 2001 From: Samuel Benzaquen Date: Fri, 25 Mar 2016 17:46:02 +0000 Subject: [PATCH] [ASTMatchers] Fix build for VariadicFunction. Under some conditions the implicit conversion from array to ArrayRef<> is not working. Fix the build by making it explicit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264428 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/ASTMatchers/ASTMatchersInternal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/clang/ASTMatchers/ASTMatchersInternal.h b/include/clang/ASTMatchers/ASTMatchersInternal.h index 185badb8dd..87ca05b079 100644 --- a/include/clang/ASTMatchers/ASTMatchersInternal.h +++ b/include/clang/ASTMatchers/ASTMatchersInternal.h @@ -90,7 +90,7 @@ private: // before we make the array. template ResultT Execute(const ArgsT &... Args) const { const ArgT *const ArgsArray[] = {&Args...}; - return Func(ArgsArray); + return Func(ArrayRef(ArgsArray, sizeof...(ArgsT))); } }; -- 2.40.0