]> granicus.if.org Git - clang/commitdiff
Fix a (bogus) uninitialized-member-of-local warning.
authorJohn McCall <rjmccall@apple.com>
Thu, 8 Apr 2010 00:13:37 +0000 (00:13 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 8 Apr 2010 00:13:37 +0000 (00:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100732 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaOverload.cpp

index 3fabbbbffe0dd3e0e6cd3366bdf4d25bc0754c3b..fa8e3600f5f443f205483faa582c8b394ddf9dd0 100644 (file)
@@ -6003,7 +6003,7 @@ Sema::BuildCallToMemberFunction(Scope *S, Expr *MemExprE,
   
   MemberExpr *MemExpr;
   CXXMethodDecl *Method = 0;
-  DeclAccessPair FoundDecl;
+  DeclAccessPair FoundDecl = DeclAccessPair::make(0, AS_public);
   NestedNameSpecifier *Qualifier = 0;
   if (isa<MemberExpr>(NakedMemExpr)) {
     MemExpr = cast<MemberExpr>(NakedMemExpr);