Remove one more redundant dyn_cast.

llvm-svn: 64808
This commit is contained in:
Argyrios Kyrtzidis 2009-02-17 20:46:25 +00:00
parent 84d8fae3be
commit 8c80735929
1 changed files with 0 additions and 3 deletions

View 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();
}