From: Fariborz Jahanian Date: Thu, 20 Jan 2011 23:34:25 +0000 (+0000) Subject: Initialize a variable, found by Ted. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=411c25c4512f00e07442e8818d011c7e0902d739;p=clang Initialize a variable, found by Ted. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123948 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaObjCProperty.cpp b/lib/Sema/SemaObjCProperty.cpp index 71d8792345..0951288618 100644 --- a/lib/Sema/SemaObjCProperty.cpp +++ b/lib/Sema/SemaObjCProperty.cpp @@ -564,7 +564,7 @@ Decl *Sema::ActOnPropertyImplDecl(Scope *S, // Diagnose if an ivar was lazily synthesdized due to a previous // use and if 1) property is @dynamic or 2) property is synthesized // but it requires an ivar of different name. - ObjCInterfaceDecl *ClassDeclared; + ObjCInterfaceDecl *ClassDeclared=0; ObjCIvarDecl *Ivar = 0; if (!Synthesize) Ivar = IDecl->lookupInstanceVariable(PropertyId, ClassDeclared);