Fix a spurious warning when message sent to qualified-id

type receiver (pr7861).

llvm-svn: 110696
This commit is contained in:
Fariborz Jahanian 2010-08-10 18:10:50 +00:00
parent 0476899b20
commit 32e59ba01d
2 changed files with 6 additions and 2 deletions

View File

@ -863,8 +863,7 @@ Sema::OwningExprResult Sema::BuildInstanceMessage(ExprArg ReceiverE,
if (!Method) {
// Handle messages to id.
bool receiverIsId = (ReceiverType->isObjCIdType() ||
ReceiverType->isObjCQualifiedIdType());
bool receiverIsId = ReceiverType->isObjCIdType();
if (receiverIsId || ReceiverType->isBlockPointerType() ||
(Receiver && Context.isObjCNSObjectType(Receiver->getType()))) {
Method = LookupInstanceMethodInGlobalPool(Sel,

View File

@ -50,3 +50,8 @@ void f4(id a0, Abstract *a1) {
void f5(id a0, Abstract *a1) {
[ a0 setZ: a1];
}
// pr7861
void f6(id<A> a0) {
Abstract *l = [a0 x];
}