Tweak Sema::ActOnInstanceMessage() to treat the built-in "Class" type the same as "id".


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43996 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Sema/SemaExpr.cpp b/Sema/SemaExpr.cpp
index 31c09be..fe96bea 100644
--- a/Sema/SemaExpr.cpp
+++ b/Sema/SemaExpr.cpp
@@ -2097,7 +2097,8 @@
   QualType returnType;
   ObjcMethodDecl *Method;
   
-  if (receiverType == Context.getObjcIdType()) {
+  if (receiverType == Context.getObjcIdType() ||
+      receiverType == Context.getObjcClassType()) {
     Method = InstanceMethodPool[Sel].Method;
     if (!Method) {
       Diag(lbrac, diag::warn_method_not_found, std::string("-"), Sel.getName(),