PCH support for all of the predefined Objective-C types, such as id,
SEL, Class, Protocol, CFConstantString, and
__objcFastEnumerationState. With this, we can now run the Objective-C
methods and properties PCH tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69932 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index b359208..e81e883 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -473,19 +473,19 @@
case 2:
if (!TypeID->isStr("id"))
break;
- Context.setObjCIdType(New);
+ Context.setObjCIdType(Context.getTypeDeclType(New));
objc_types = true;
break;
case 5:
if (!TypeID->isStr("Class"))
break;
- Context.setObjCClassType(New);
+ Context.setObjCClassType(Context.getTypeDeclType(New));
objc_types = true;
return false;
case 3:
if (!TypeID->isStr("SEL"))
break;
- Context.setObjCSelType(New);
+ Context.setObjCSelType(Context.getTypeDeclType(New));
objc_types = true;
return false;
case 8: