summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2008-11-24 22:16:00 +0000
committerFariborz Jahanian <fjahanian@apple.com>2008-11-24 22:16:00 +0000
commit8fc3741b761e7b25ff32f93cb7f95c77dd691424 (patch)
treecfe3771996ecbfa31f5cbd8c69764173ebe8b38c /clang/lib
parent198a5838df33a9b5b7237a216d6989529515f371 (diff)
downloadbcm5719-llvm-8fc3741b761e7b25ff32f93cb7f95c77dd691424.tar.gz
bcm5719-llvm-8fc3741b761e7b25ff32f93cb7f95c77dd691424.zip
Patch to remove bogus waring when a property declaration
is imported from a protocol into the implementation. llvm-svn: 59988
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaDeclObjC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp
index 4d4c82be699..95737af18ac 100644
--- a/clang/lib/Sema/SemaDeclObjC.cpp
+++ b/clang/lib/Sema/SemaDeclObjC.cpp
@@ -610,7 +610,7 @@ void Sema::CheckProtocolMethodDefs(SourceLocation ImpLoc,
E = PDecl->instmeth_end(); I != E; ++I) {
ObjCMethodDecl *method = *I;
if (method->getImplementationControl() != ObjCMethodDecl::Optional &&
- !InsMap.count(method->getSelector()) &&
+ !method->isSynthesized() && !InsMap.count(method->getSelector()) &&
(!Super || !Super->lookupInstanceMethod(method->getSelector())))
WarnUndefinedMethod(ImpLoc, method, IncompleteImpl);
}
OpenPOWER on IntegriCloud