summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2013-06-21 02:13:57 +0000
committerEli Friedman <eli.friedman@gmail.com>2013-06-21 02:13:57 +0000
commit6f0cd6e8660356a25ea4dd5a00b96771e76726b3 (patch)
tree6323b420707068b232a1fc4108e0bfe6eae3681f
parent81e4e4e5cc24dcb10622b9d2f77e792306621f4c (diff)
downloadbcm5719-llvm-6f0cd6e8660356a25ea4dd5a00b96771e76726b3.tar.gz
bcm5719-llvm-6f0cd6e8660356a25ea4dd5a00b96771e76726b3.zip
Delete dead code.
llvm-svn: 184520
-rw-r--r--clang/lib/Sema/SemaDeclObjC.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp
index e52f7435a32..8ce4ef3e4bb 100644
--- a/clang/lib/Sema/SemaDeclObjC.cpp
+++ b/clang/lib/Sema/SemaDeclObjC.cpp
@@ -1917,13 +1917,6 @@ Sema::ActOnForwardClassDeclaration(SourceLocation AtClassLoc,
NamedDecl *PrevDecl
= LookupSingleName(TUScope, IdentList[i], IdentLocs[i],
LookupOrdinaryName, ForRedeclaration);
- if (PrevDecl && PrevDecl->isTemplateParameter()) {
- // Maybe we will complain about the shadowed template parameter.
- DiagnoseTemplateParameterShadow(AtClassLoc, PrevDecl);
- // Just pretend that we didn't see the previous declaration.
- PrevDecl = 0;
- }
-
if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {
// GCC apparently allows the following idiom:
//
OpenPOWER on IntegriCloud