forked from OSchip/llvm-project
Remove dead clause (we decided not to support protocol qualified 'Class').
llvm-svn: 66385
This commit is contained in:
parent
dc9642feb1
commit
d2bb2dfa57
|
@ -471,15 +471,6 @@ Sema::ExprResult Sema::ActOnInstanceMessage(ExprTy *receiver, Selector Sel,
|
|||
if (PDecl && (Method = PDecl->lookupInstanceMethod(Sel)))
|
||||
break;
|
||||
}
|
||||
// Check for GCC extension "Class<foo>".
|
||||
} else if (ObjCQualifiedClassType *QIT =
|
||||
dyn_cast<ObjCQualifiedClassType>(ReceiverCType)) {
|
||||
// Search protocols for class methods.
|
||||
for (unsigned i = 0; i < QIT->getNumProtocols(); i++) {
|
||||
ObjCProtocolDecl *PDecl = QIT->getProtocols(i);
|
||||
if (PDecl && (Method = PDecl->lookupClassMethod(Sel)))
|
||||
break;
|
||||
}
|
||||
} else if (const ObjCInterfaceType *OCIType =
|
||||
ReceiverCType->getAsPointerToObjCInterfaceType()) {
|
||||
// We allow sending a message to a pointer to an interface (an object).
|
||||
|
|
Loading…
Reference in New Issue