r264453 - [ASTMatchers] Don't use brace-init lists.
Samuel Benzaquen via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 25 12:41:33 PDT 2016
Author: sbenza
Date: Fri Mar 25 14:41:32 2016
New Revision: 264453
URL: http://llvm.org/viewvc/llvm-project?rev=264453&view=rev
Log:
[ASTMatchers] Don't use brace-init lists.
They are not supported everywhere yet.
This fixes the MSVC build.
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=264453&r1=264452&r2=264453&view=diff
==============================================================================
--- cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h (original)
+++ cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h Fri Mar 25 14:41:32 2016
@@ -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 {
More information about the cfe-commits
mailing list