[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:
parent
5d045a9031
commit
de6b9fd48a
|
@ -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)));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue