diff options
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/AST/DeclObjC.cpp | 4 | ||||
-rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp index a1011b830e1..5da762e1fbf 100644 --- a/clang/lib/AST/DeclObjC.cpp +++ b/clang/lib/AST/DeclObjC.cpp @@ -452,8 +452,8 @@ void ObjCProtocolDecl::addMethods(ObjCMethodDecl **insMethods, AtEndLoc = endLoc; } -void ObjCCategoryDecl::setReferencedProtocolList(ObjCProtocolDecl **List, - unsigned NumRPs) { +void ObjCCategoryDecl::addReferencedProtocols(ObjCProtocolDecl **List, + unsigned NumRPs) { assert(NumReferencedProtocols == 0 && "Protocol list already set"); if (NumRPs == 0) return; diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index 8cceda2966b..ad40cbe8453 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/lib/Sema/SemaDeclObjC.cpp @@ -435,7 +435,7 @@ Sema::DeclTy *Sema::ActOnStartCategoryInterface( RefProtocols.push_back(RefPDecl); } if (!RefProtocols.empty()) - CDecl->setReferencedProtocolList(&RefProtocols[0], RefProtocols.size()); + CDecl->addReferencedProtocols(&RefProtocols[0], RefProtocols.size()); } CDecl->setLocEnd(EndProtoLoc); return CDecl; |