We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a2ed72 commit 1df1d40Copy full SHA for 1df1d40
clang/lib/CodeGen/CGObjCGNU.cpp
@@ -1147,8 +1147,8 @@ void CGObjCGNU::GenerateCategory(const ObjCCategoryImplDecl *OCD) {
1147
1148
// Collect the names of referenced protocols
1149
llvm::SmallVector<std::string, 16> Protocols;
1150
- const ObjCInterfaceDecl *ClassDecl = OCD->getClassInterface();
1151
- const ObjCList<ObjCProtocolDecl> &Protos =ClassDecl->getReferencedProtocols();
+ const ObjCCategoryDecl *CatDecl = OCD->getCategoryDecl();
+ const ObjCList<ObjCProtocolDecl> &Protos = CatDecl->getReferencedProtocols();
1152
for (ObjCList<ObjCProtocolDecl>::iterator I = Protos.begin(),
1153
E = Protos.end(); I != E; ++I)
1154
Protocols.push_back((*I)->getNameAsString());
0 commit comments