summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-08-12 17:09:30 +0000
committerDouglas Gregor <dgregor@apple.com>2011-08-12 17:09:30 +0000
commitc45c287ab602bc725a9c64ddb4089748eb9d5bbd (patch)
treebf733989bc0040b4ec137c833e229973a838638c /clang/lib/Sema/SemaDecl.cpp
parent234317d12a7292685eb0da0c81197298697e9295 (diff)
downloadbcm5719-llvm-c45c287ab602bc725a9c64ddb4089748eb9d5bbd.tar.gz
bcm5719-llvm-c45c287ab602bc725a9c64ddb4089748eb9d5bbd.zip
Overriding the predefined Protocol isn't something that's actually
done and is likely to not work well anyway; take away this unnecessary complexity. llvm-svn: 137465
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 8fe2e544009..ff313932b26 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/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.
}
OpenPOWER on IntegriCloud