aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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(),