From e86d923f18be15ff8367f180c1d2722eed2e9716 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 27 Aug 2008 05:13:46 +0000 Subject: [PATCH] Fix "possibly uninitialized" warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55406 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/DeclObjC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.50.1