r264428 - [ASTMatchers] Fix build for VariadicFunction.
Samuel Benzaquen via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 25 10:46:02 PDT 2016
Author: sbenza
Date: Fri Mar 25 12:46:02 2016
New Revision: 264428
URL: http://llvm.org/viewvc/llvm-project?rev=264428&view=rev
Log:
[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.
Modified:
cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h
Modified: cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h?rev=264428&r1=264427&r2=264428&view=diff
==============================================================================
--- cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h (original)
+++ cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h Fri Mar 25 12:46:02 2016
@@ -90,7 +90,7 @@ private:
// before we make the array.
template <typename... ArgsT> ResultT Execute(const ArgsT &... Args) const {
const ArgT *const ArgsArray[] = {&Args...};
- return Func(ArgsArray);
+ return Func(ArrayRef<const ArgT *>(ArgsArray, sizeof...(ArgsT)));
}
};
More information about the cfe-commits
mailing list