[cfe-commits] r55406 - /cfe/trunk/lib/AST/DeclObjC.cpp
Daniel Dunbar
daniel at zuster.org
Tue Aug 26 22:13:47 PDT 2008
Author: ddunbar
Date: Wed Aug 27 00:13:46 2008
New Revision: 55406
URL: http://llvm.org/viewvc/llvm-project?rev=55406&view=rev
Log:
Fix "possibly uninitialized" warning.
Modified:
cfe/trunk/lib/AST/DeclObjC.cpp
Modified: cfe/trunk/lib/AST/DeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclObjC.cpp?rev=55406&r1=55405&r2=55406&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclObjC.cpp (original)
+++ cfe/trunk/lib/AST/DeclObjC.cpp Wed Aug 27 00:13:46 2008
@@ -407,7 +407,7 @@
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());
More information about the cfe-commits
mailing list