[cfe-commits] r43996 - /cfe/trunk/Sema/SemaExpr.cpp
Steve Naroff
snaroff at apple.com
Sun Nov 11 09:52:27 PST 2007
Author: snaroff
Date: Sun Nov 11 11:52:25 2007
New Revision: 43996
URL: http://llvm.org/viewvc/llvm-project?rev=43996&view=rev
Log:
Tweak Sema::ActOnInstanceMessage() to treat the built-in "Class" type the same as "id".
Modified:
cfe/trunk/Sema/SemaExpr.cpp
Modified: cfe/trunk/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaExpr.cpp?rev=43996&r1=43995&r2=43996&view=diff
==============================================================================
--- cfe/trunk/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/Sema/SemaExpr.cpp Sun Nov 11 11:52:25 2007
@@ -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(),
More information about the cfe-commits
mailing list