diff options
Diffstat (limited to 'lib/Frontend')
-rw-r--r-- | lib/Frontend/PCHReader.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/Frontend/PCHReader.cpp b/lib/Frontend/PCHReader.cpp index f29a0ba578..3a311d49c2 100644 --- a/lib/Frontend/PCHReader.cpp +++ b/lib/Frontend/PCHReader.cpp @@ -2085,10 +2085,15 @@ QualType PCHReader::ReadTypeRecord(uint64_t Offset) { return Context.getObjCInterfaceType( cast<ObjCInterfaceDecl>(GetDecl(Record[0]))); - case pch::TYPE_OBJC_QUALIFIED_INTERFACE: - // FIXME: Deserialize ObjCQualifiedInterfaceType - assert(false && "Cannot de-serialize ObjC qualified interface types yet"); - return QualType(); + case pch::TYPE_OBJC_QUALIFIED_INTERFACE: { + unsigned Idx = 0; + ObjCInterfaceDecl *ItfD = cast<ObjCInterfaceDecl>(GetDecl(Record[Idx++])); + unsigned NumProtos = Record[Idx++]; + llvm::SmallVector<ObjCProtocolDecl*, 4> Protos; + for (unsigned I = 0; I != NumProtos; ++I) + Protos.push_back(cast<ObjCProtocolDecl>(GetDecl(Record[Idx++]))); + return Context.getObjCQualifiedInterfaceType(ItfD, &Protos[0], NumProtos); + } case pch::TYPE_OBJC_QUALIFIED_ID: { unsigned Idx = 0; |