[llvm-branch-commits] [cfe-branch] r99911 - /cfe/branches/release_27/lib/CodeGen/CGObjCGNU.cpp
Tanya Lattner
tonic at nondot.org
Tue Mar 30 11:53:49 PDT 2010
Author: tbrethou
Date: Tue Mar 30 13:53:49 2010
New Revision: 99911
URL: http://llvm.org/viewvc/llvm-project?rev=99911&view=rev
Log:
Merge 98455 from mainline.
Modified:
cfe/branches/release_27/lib/CodeGen/CGObjCGNU.cpp
Modified: cfe/branches/release_27/lib/CodeGen/CGObjCGNU.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/release_27/lib/CodeGen/CGObjCGNU.cpp?rev=99911&r1=99910&r2=99911&view=diff
==============================================================================
--- cfe/branches/release_27/lib/CodeGen/CGObjCGNU.cpp (original)
+++ cfe/branches/release_27/lib/CodeGen/CGObjCGNU.cpp Tue Mar 30 13:53:49 2010
@@ -1147,8 +1147,8 @@
// Collect the names of referenced protocols
llvm::SmallVector<std::string, 16> Protocols;
- const ObjCInterfaceDecl *ClassDecl = OCD->getClassInterface();
- const ObjCList<ObjCProtocolDecl> &Protos =ClassDecl->getReferencedProtocols();
+ const ObjCCategoryDecl *CatDecl = OCD->getCategoryDecl();
+ const ObjCList<ObjCProtocolDecl> &Protos = CatDecl->getReferencedProtocols();
for (ObjCList<ObjCProtocolDecl>::iterator I = Protos.begin(),
E = Protos.end(); I != E; ++I)
Protocols.push_back((*I)->getNameAsString());
More information about the llvm-branch-commits
mailing list