From: Douglas Gregor Date: Fri, 12 Aug 2011 17:09:30 +0000 (+0000) Subject: Overriding the predefined Protocol isn't something that's actually X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f80b0db7b131ce5bc9451b21d0555bd686e348f1;p=clang Overriding the predefined Protocol isn't something that's actually done and is likely to not work well anyway; take away this unnecessary complexity. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137465 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 8fe2e54400..ff313932b2 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -1342,11 +1342,6 @@ void Sema::MergeTypedefNameDecl(TypedefNameDecl *New, LookupResult &OldDecls) { // Install the built-in type for 'SEL', ignoring the current definition. New->setTypeForDecl(Context.getObjCSelType().getTypePtr()); return; - case 8: - if (!TypeID->isStr("Protocol")) - break; - Context.setObjCProtoType(New->getUnderlyingType()); - return; } // Fall through - the typedef name was not a builtin type. }