]> granicus.if.org Git - clang/commitdiff
Tweak Sema::ActOnInstanceMessage() to treat the built-in "Class" type the same as...
authorSteve Naroff <snaroff@apple.com>
Sun, 11 Nov 2007 17:52:25 +0000 (17:52 +0000)
committerSteve Naroff <snaroff@apple.com>
Sun, 11 Nov 2007 17:52:25 +0000 (17:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43996 91177308-0d34-0410-b5e6-96231b3b80d8

Sema/SemaExpr.cpp

index 31c09be7cb8b67c65c30d5dd7b9bca3ea052c145..fe96bea69363444671d26221bbee15941ea5bda4 100644 (file)
@@ -2097,7 +2097,8 @@ Sema::ExprResult Sema::ActOnInstanceMessage(
   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(),