]> granicus.if.org Git - clang/commitdiff
Fix a spurious warning when message sent to qualified-id
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 10 Aug 2010 18:10:50 +0000 (18:10 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 10 Aug 2010 18:10:50 +0000 (18:10 +0000)
type receiver (pr7861).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110696 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExprObjC.cpp
test/SemaObjC/method-lookup-3.m

index df970411e7f52d0f87179ac6f7236f316edb7118..f718ea3fd97baa71a88b844a34ed30dffd5a3cc2 100644 (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, 
index 18a9982840bd0fe992d9a565d9042ed335987dea..882b3d1d2123230ee61a7396d7edd1785e3c6f10 100644 (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];
+}