зеркало из https://github.com/microsoft/clang.git
Fixed copy-and-paste error causing categories to contain the protocols declared on the class, not the protocols declared on the category.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98455 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
c2a981614e
Коммит
ad9e06d82a
|
@ -1147,8 +1147,8 @@ void CGObjCGNU::GenerateCategory(const ObjCCategoryImplDecl *OCD) {
|
|||
|
||||
// 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());
|
||||
|
|
Загрузка…
Ссылка в новой задаче