[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
This commit is contained in:
Samuel Benzaquen 2016-03-25 17:46:02 +00:00
parent 5d045a9031
commit de6b9fd48a
1 changed files with 1 additions and 1 deletions

View File

@ -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)));
}
};