[ASTMatchers] Don't use brace-init lists.
authorSamuel Benzaquen <sbenza@google.com>
Fri, 25 Mar 2016 19:41:32 +0000 (19:41 +0000)
committerSamuel Benzaquen <sbenza@google.com>
Fri, 25 Mar 2016 19:41:32 +0000 (19:41 +0000)
They are not supported everywhere yet.
This fixes the MSVC build.

llvm-svn: 264453

clang/include/clang/ASTMatchers/ASTMatchersInternal.h

index 87ca05b..efe1515 100644 (file)
@@ -69,7 +69,7 @@ namespace internal {
 template <typename ResultT, typename ArgT,
           ResultT (*Func)(ArrayRef<const ArgT *>)>
 struct VariadicFunction {
-  ResultT operator()() const { return Func({}); }
+  ResultT operator()() const { return Func(None); }
 
   template <typename... ArgsT>
   ResultT operator()(const ArgT &Arg1, const ArgsT &... Args) const {