diff options
author | Steve Naroff <snaroff@apple.com> | 2009-03-08 19:04:05 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-03-08 19:04:05 +0000 |
commit | d2bb2dfa57ab04056f8aec638b46eb59f4aebd4f (patch) | |
tree | 41b5a06de07e47077bbdc596f54fb771c7202e16 | |
parent | dc9642feb1b7c34111b20d9c49897ed9c938ffd4 (diff) | |
download | bcm5719-llvm-d2bb2dfa57ab04056f8aec638b46eb59f4aebd4f.tar.gz bcm5719-llvm-d2bb2dfa57ab04056f8aec638b46eb59f4aebd4f.zip |
Remove dead clause (we decided not to support protocol qualified 'Class').
llvm-svn: 66385
-rw-r--r-- | clang/lib/Sema/SemaExprObjC.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp index ef397ca771c..6b40c89a8c8 100644 --- a/clang/lib/Sema/SemaExprObjC.cpp +++ b/clang/lib/Sema/SemaExprObjC.cpp @@ -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). |