From 7c24915aa9015b951a62746723f7889875d3ba10 Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Sun, 11 Nov 2007 17:52:25 +0000 Subject: [PATCH] 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 --- Sema/SemaExpr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sema/SemaExpr.cpp b/Sema/SemaExpr.cpp index 31c09be7cb..fe96bea693 100644 --- a/Sema/SemaExpr.cpp +++ b/Sema/SemaExpr.cpp @@ -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(), -- 2.50.1