diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-08-27 05:13:46 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-27 05:13:46 +0000 |
commit | e86d923f18be15ff8367f180c1d2722eed2e9716 (patch) | |
tree | 9cfc1ede24f2b0bfe96cc11aa8b1c6ab422d9b7d /lib/AST/DeclObjC.cpp | |
parent | ae226fa1141e22d1b997f19bd92c7223079d03f4 (diff) |
Fix "possibly uninitialized" warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55406 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclObjC.cpp')
-rw-r--r-- | lib/AST/DeclObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<ObjCMethodDecl*, 32> &insMethods) { - ObjCMethodDecl *GetterDecl, *SetterDecl; + ObjCMethodDecl *GetterDecl, *SetterDecl = 0; if (ObjCInterfaceDecl *OID = dyn_cast<ObjCInterfaceDecl>(D)) { GetterDecl = OID->getInstanceMethod(property->getGetterName()); |