x86_64 ABI: Qualified id types are passed as pointers.
 - <rdar://problem/6622451> Bad x86_64 code gen for message call taking one argument.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65510 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp
index 93f4ebe..974b9b4 100644
--- a/lib/CodeGen/CGCall.cpp
+++ b/lib/CodeGen/CGCall.cpp
@@ -523,6 +523,7 @@
     // FIXME: _float128 and _Decimal128 are (SSE, SSEUp).
     // FIXME: __int128 is (Integer, Integer).
   } else if (Ty->isPointerLikeType() || Ty->isBlockPointerType() ||
+             Ty->isObjCQualifiedIdType() ||
              Ty->isObjCQualifiedInterfaceType()) {
     Current = Integer;
   } else if (const VectorType *VT = Ty->getAsVectorType()) {