diff options
author | Steve Naroff <snaroff@apple.com> | 2008-05-31 02:19:15 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-05-31 02:19:15 +0000 |
commit | a326bae77ade88390ba6acd40eeb1f421eafa73a (patch) | |
tree | 4c27abae4e0553b1c81dddbaa52a4358e24af665 /clang/lib/Sema/SemaExprObjC.cpp | |
parent | bd3390c73a17a99f8951b833b3b72b2228997380 (diff) | |
download | bcm5719-llvm-a326bae77ade88390ba6acd40eeb1f421eafa73a.tar.gz bcm5719-llvm-a326bae77ade88390ba6acd40eeb1f421eafa73a.zip |
Fix <rdar://problem/5965704> clang: bad receiver type 'id const'
llvm-svn: 51809
Diffstat (limited to 'clang/lib/Sema/SemaExprObjC.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExprObjC.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp index c55c05893f5..dd90b9ca19d 100644 --- a/clang/lib/Sema/SemaExprObjC.cpp +++ b/clang/lib/Sema/SemaExprObjC.cpp @@ -199,11 +199,12 @@ Sema::ExprResult Sema::ActOnInstanceMessage( Expr **ArgExprs = reinterpret_cast<Expr **>(Args); Expr *RExpr = static_cast<Expr *>(receiver); - QualType receiverType = RExpr->getType().getCanonicalType(); + QualType receiverType; QualType returnType; ObjCMethodDecl *Method = 0; + + receiverType = RExpr->getType().getCanonicalType().getUnqualifiedType(); - // FIXME: This code is not stripping off type qualifiers! Should it? if (receiverType == Context.getObjCIdType().getCanonicalType() || receiverType == Context.getObjCClassType().getCanonicalType()) { Method = InstanceMethodPool[Sel].Method; |