diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-25 18:24:33 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-25 18:24:33 +0000 |
| commit | 8e3b9db27fb1fae13fd326e67d3c88e6f5fc55aa (patch) | |
| tree | fa1e19620cfbecf5c5e182c797373d8238df4d8b /clang/lib/AST/ASTContext.cpp | |
| parent | 048b6485b753a7a27c09d7d0cc8dd274ff59fe32 (diff) | |
| download | bcm5719-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.cpp | 4 |
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(); |

