summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-02-17 20:46:25 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-02-17 20:46:25 +0000
commit8c8073592921d657ce31bf25e6b9d072a0edfbd4 (patch)
tree097569e21e93cb204d42fa01cc5a1a3be46cdc2b /clang/lib
parent84d8fae3be3d2bc78b23b8c94dcd50fa6af06820 (diff)
downloadbcm5719-llvm-8c8073592921d657ce31bf25e6b9d072a0edfbd4.tar.gz
bcm5719-llvm-8c8073592921d657ce31bf25e6b9d072a0edfbd4.zip
Remove one more redundant dyn_cast.
llvm-svn: 64808
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 0d4f562db18..55e2a924762 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -105,9 +105,6 @@ DeclContext *Sema::getContainingDC(DeclContext *DC) {
if (isa<ObjCMethodDecl>(DC))
return Context.getTranslationUnitDecl();
- if (Decl *D = dyn_cast<Decl>(DC))
- return D->getLexicalDeclContext();
-
return DC->getLexicalParent();
}
OpenPOWER on IntegriCloud