From: Daniel Dunbar Date: Wed, 27 Aug 2008 05:13:46 +0000 (+0000) Subject: Fix "possibly uninitialized" warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e86d923f18be15ff8367f180c1d2722eed2e9716;p=clang Fix "possibly uninitialized" warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55406 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp index 8fb4406eff..0d006d676d 100644 --- a/lib/AST/DeclObjC.cpp +++ b/lib/AST/DeclObjC.cpp @@ -407,7 +407,7 @@ addPropertyMethods(Decl *D, ASTContext &Context, ObjCPropertyDecl *property, llvm::SmallVector &insMethods) { - ObjCMethodDecl *GetterDecl, *SetterDecl; + ObjCMethodDecl *GetterDecl, *SetterDecl = 0; if (ObjCInterfaceDecl *OID = dyn_cast(D)) { GetterDecl = OID->getInstanceMethod(property->getGetterName());