]> granicus.if.org Git - clang/commitdiff
[index] Change some default parameters to fix an MSVC ICE.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 13 Feb 2016 05:17:15 +0000 (05:17 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 13 Feb 2016 05:17:15 +0000 (05:17 +0000)
Many thanks to Yunzhong Gao for tracking this down!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260807 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Index/IndexingContext.h

index 774650547f833acced7d49dbc50ad6612723157b..600fc433b58d1b55871a7b8d6ba312b34e44beb0 100644 (file)
@@ -62,18 +62,18 @@ public:
   static bool isTemplateImplicitInstantiation(const Decl *D);
 
   bool handleDecl(const Decl *D, SymbolRoleSet Roles = SymbolRoleSet(),
-                  ArrayRef<SymbolRelation> Relations = {});
+                  ArrayRef<SymbolRelation> Relations = None);
 
   bool handleDecl(const Decl *D, SourceLocation Loc,
                   SymbolRoleSet Roles = SymbolRoleSet(),
-                  ArrayRef<SymbolRelation> Relations = {},
+                  ArrayRef<SymbolRelation> Relations = None,
                   const DeclContext *DC = nullptr);
 
   bool handleReference(const NamedDecl *D, SourceLocation Loc,
                        const NamedDecl *Parent,
                        const DeclContext *DC,
                        SymbolRoleSet Roles,
-                       ArrayRef<SymbolRelation> Relations = {},
+                       ArrayRef<SymbolRelation> Relations = None,
                        const Expr *RefE = nullptr,
                        const Decl *RefD = nullptr);