forked from OSchip/llvm-project
Fix a spurious warning when message sent to qualified-id
type receiver (pr7861). llvm-svn: 110696
This commit is contained in:
parent
0476899b20
commit
32e59ba01d
|
@ -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,
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue