Added type encoding for 'id' type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43504 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/ASTContext.cpp b/AST/ASTContext.cpp
index ee45c00..40b7b64 100644
--- a/AST/ASTContext.cpp
+++ b/AST/ASTContext.cpp
@@ -1010,6 +1010,10 @@
S += encoding;
} else if (const PointerType *PT = T->getAsPointerType()) {
QualType PointeeTy = PT->getPointeeType();
+ if (isObjcIdType(PointeeTy)) {
+ S += '@';
+ return;
+ }
if (PointeeTy->isCharType()) {
// char pointer types should be encoded as '*' unless it is a