aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-11-11 17:52:25 +0000
committerSteve Naroff <snaroff@apple.com>2007-11-11 17:52:25 +0000
commit7c24915aa9015b951a62746723f7889875d3ba10 (patch)
tree025f3391a14f6c06c73675fabaa6c24310915828
parent0416fb9f379b49abb3eb0c1cb2ca75107e5a71d1 (diff)
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
-rw-r--r--Sema/SemaExpr.cpp3
1 files changed, 2 insertions, 1 deletions
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(),