summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-02-25 18:24:33 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-02-25 18:24:33 +0000
commit8e3b9db27fb1fae13fd326e67d3c88e6f5fc55aa (patch)
treefa1e19620cfbecf5c5e182c797373d8238df4d8b /clang/lib/AST/ASTContext.cpp
parent048b6485b753a7a27c09d7d0cc8dd274ff59fe32 (diff)
downloadbcm5719-llvm-8e3b9db27fb1fae13fd326e67d3c88e6f5fc55aa.tar.gz
bcm5719-llvm-8e3b9db27fb1fae13fd326e67d3c88e6f5fc55aa.zip
Forgot to include nested protocols in collection, resulting in
bogus warning. Fixes radar 7682116. llvm-svn: 97157
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 202e3370b67..22871a4a681 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -945,9 +945,11 @@ void ASTContext::CollectInheritedProtocols(const Decl *CDecl,
ObjCProtocolDecl *Proto = (*P);
Protocols.insert(Proto);
for (ObjCProtocolDecl::protocol_iterator P = Proto->protocol_begin(),
- PE = Proto->protocol_end(); P != PE; ++P)
+ PE = Proto->protocol_end(); P != PE; ++P) {
+ Protocols.insert(*P);
CollectInheritedProtocols(*P, Protocols);
}
+ }
// Categories of this Interface.
for (const ObjCCategoryDecl *CDeclChain = OI->getCategoryList();
OpenPOWER on IntegriCloud