]> granicus.if.org Git - clang/commitdiff
Remove one more redundant dyn_cast.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 17 Feb 2009 20:46:25 +0000 (20:46 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 17 Feb 2009 20:46:25 +0000 (20:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64808 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index 0d4f562db1897c789282bac124a6916b88e0f924..55e2a9247621ecba37fe9a6ebe2fce71b3db3f5e 100644 (file)
@@ -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();
 }