aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaObjCProperty.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-01-20 23:34:25 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-01-20 23:34:25 +0000
commit411c25c4512f00e07442e8818d011c7e0902d739 (patch)
tree7ee06e00338a99ccc688b23f95a10bdf42034259 /lib/Sema/SemaObjCProperty.cpp
parent8619edd6c5636dcdde75b1151e21029e38592e2f (diff)
Initialize a variable, found by Ted.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaObjCProperty.cpp')
-rw-r--r--lib/Sema/SemaObjCProperty.cpp2
1 files changed, 1 insertions, 1 deletions
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);