diff options
Diffstat (limited to 'clang/lib/Serialization/ASTReader.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTReader.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp index 2e9e1bee684..2d4cde05a9d 100644 --- a/clang/lib/Serialization/ASTReader.cpp +++ b/clang/lib/Serialization/ASTReader.cpp @@ -2997,11 +2997,6 @@ void ASTReader::InitializeContext(ASTContext &Ctx) { Context->ObjCProtoType = GetType(Proto); } - if (unsigned Class = SpecialTypes[SPECIAL_TYPE_OBJC_CLASS]) { - if (Context->ObjCClassTypedefType.isNull()) - Context->ObjCClassTypedefType = GetType(Class); - } - if (unsigned String = SpecialTypes[SPECIAL_TYPE_CF_CONSTANT_STRING]) { if (!Context->CFConstantStringTypeDecl) Context->setCFConstantStringType(GetType(String)); @@ -4224,6 +4219,10 @@ Decl *ASTReader::GetDecl(DeclID ID) { case PREDEF_DECL_OBJC_ID_ID: assert(Context && "No context available?"); return Context->getObjCIdDecl(); + + case PREDEF_DECL_OBJC_CLASS_ID: + assert(Context && "No context available?"); + return Context->getObjCClassDecl(); } return 0; |