From: Douglas Gregor Date: Fri, 24 Apr 2009 22:01:00 +0000 (+0000) Subject: Once the protocol list has been loaded from the PCH file, add it to X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5e662d7226b3790848faece71f8522b21373334;p=clang Once the protocol list has been loaded from the PCH file, add it to the Objective-C interface. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69993 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/PCHReader.cpp b/lib/Frontend/PCHReader.cpp index 5a1e882067..2dfb7e0a0a 100644 --- a/lib/Frontend/PCHReader.cpp +++ b/lib/Frontend/PCHReader.cpp @@ -234,6 +234,7 @@ void PCHDeclReader::VisitObjCInterfaceDecl(ObjCInterfaceDecl *ID) { Protocols.reserve(NumProtocols); for (unsigned I = 0; I != NumProtocols; ++I) Protocols.push_back(cast(Reader.GetDecl(Record[Idx++]))); + ID->setProtocolList(&Protocols[0], NumProtocols, Reader.getContext()); unsigned NumIvars = Record[Idx++]; llvm::SmallVector IVars; IVars.reserve(NumIvars);