]> granicus.if.org Git - clang/commitdiff
Initialize a variable, found by Ted.
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 20 Jan 2011 23:34:25 +0000 (23:34 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Thu, 20 Jan 2011 23:34:25 +0000 (23:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123948 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaObjCProperty.cpp

index 71d87923456b1927de5a73509fd2d9223d12dd04..09512886187309a758a9d2182d976d500ef2b79d 100644 (file)
@@ -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);