diff options
author | Samuel Benzaquen <sbenza@google.com> | 2016-03-25 17:46:02 +0000 |
---|---|---|
committer | Samuel Benzaquen <sbenza@google.com> | 2016-03-25 17:46:02 +0000 |
commit | de6b9fd48a33e645f2516e15ade00572af66a511 (patch) | |
tree | 02adbc76687df3123276de3d903b540f5e8f620a | |
parent | 5d045a903115ff154560a844eda3bddb85d9115c (diff) | |
download | bcm5719-llvm-de6b9fd48a33e645f2516e15ade00572af66a511.tar.gz bcm5719-llvm-de6b9fd48a33e645f2516e15ade00572af66a511.zip |
[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.
llvm-svn: 264428
-rw-r--r-- | clang/include/clang/ASTMatchers/ASTMatchersInternal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/ASTMatchers/ASTMatchersInternal.h b/clang/include/clang/ASTMatchers/ASTMatchersInternal.h index 185badb8dd2..87ca05b0797 100644 --- a/clang/include/clang/ASTMatchers/ASTMatchersInternal.h +++ b/clang/include/clang/ASTMatchers/ASTMatchersInternal.h @@ -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))); } }; |