From: John McCall Date: Thu, 8 Apr 2010 00:13:37 +0000 (+0000) Subject: Fix a (bogus) uninitialized-member-of-local warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb6fb465c718f28b8c1bdddb9c22d7d733a741a7;p=clang Fix a (bogus) uninitialized-member-of-local warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100732 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 3fabbbbffe..fa8e3600f5 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -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(NakedMemExpr)) { MemExpr = cast(NakedMemExpr);