aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
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
commitafcc7b425bcdc8ef8092f5f510486d2f246c2d86 (patch)
tree09e6217187d12bd6bb55a843a4a1603a16fa8e64 /lib/Sema/SemaDecl.cpp
parent305ec42f971a2b3e114eb35256c23e955c497a1c (diff)
Remove one more redundant dyn_cast.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64808 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 0d4f562db1..55e2a92476 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/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();
}