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 2d4cde05a9d..c048f58fdba 100644 --- a/clang/lib/Serialization/ASTReader.cpp +++ b/clang/lib/Serialization/ASTReader.cpp @@ -2987,11 +2987,6 @@ void ASTReader::InitializeContext(ASTContext &Ctx) { GetType(SpecialTypes[SPECIAL_TYPE_BUILTIN_VA_LIST])); } - if (unsigned Sel = SpecialTypes[SPECIAL_TYPE_OBJC_SELECTOR]) { - if (Context->ObjCSelTypedefType.isNull()) - Context->ObjCSelTypedefType = GetType(Sel); - } - if (unsigned Proto = SpecialTypes[SPECIAL_TYPE_OBJC_PROTOCOL]) { if (Context->ObjCProtoType.isNull()) Context->ObjCProtoType = GetType(Proto); @@ -4220,6 +4215,10 @@ Decl *ASTReader::GetDecl(DeclID ID) { assert(Context && "No context available?"); return Context->getObjCIdDecl(); + case PREDEF_DECL_OBJC_SEL_ID: + assert(Context && "No context available?"); + return Context->getObjCSelDecl(); + case PREDEF_DECL_OBJC_CLASS_ID: assert(Context && "No context available?"); return Context->getObjCClassDecl(); |