]> granicus.if.org Git - clang/commitdiff
Overriding the predefined Protocol isn't something that's actually
authorDouglas Gregor <dgregor@apple.com>
Fri, 12 Aug 2011 17:09:30 +0000 (17:09 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 12 Aug 2011 17:09:30 +0000 (17:09 +0000)
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

lib/Sema/SemaDecl.cpp

index 8fe2e544009f32ec61480a6dc52d9e20d0f15803..ff313932b26bd664f9eb7d296e95e5cc2e823ab0 100644 (file)
@@ -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.
   }