[cfe-commits] r110696 - in /cfe/trunk: lib/Sema/SemaExprObjC.cpp test/SemaObjC/method-lookup-3.m
Fariborz Jahanian
fjahanian at apple.com
Tue Aug 10 11:10:50 PDT 2010
Author: fjahanian
Date: Tue Aug 10 13:10:50 2010
New Revision: 110696
URL: http://llvm.org/viewvc/llvm-project?rev=110696&view=rev
Log:
Fix a spurious warning when message sent to qualified-id
type receiver (pr7861).
Modified:
cfe/trunk/lib/Sema/SemaExprObjC.cpp
cfe/trunk/test/SemaObjC/method-lookup-3.m
Modified: cfe/trunk/lib/Sema/SemaExprObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprObjC.cpp?rev=110696&r1=110695&r2=110696&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprObjC.cpp Tue Aug 10 13:10:50 2010
@@ -863,8 +863,7 @@
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,
Modified: cfe/trunk/test/SemaObjC/method-lookup-3.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/method-lookup-3.m?rev=110696&r1=110695&r2=110696&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/method-lookup-3.m (original)
+++ cfe/trunk/test/SemaObjC/method-lookup-3.m Tue Aug 10 13:10:50 2010
@@ -50,3 +50,8 @@
void f5(id a0, Abstract *a1) {
[ a0 setZ: a1];
}
+
+// pr7861
+void f6(id<A> a0) {
+ Abstract *l = [a0 x];
+}
More information about the cfe-commits
mailing list