[cfe-commits] r64808 - /cfe/trunk/lib/Sema/SemaDecl.cpp

Argiris Kirtzidis akyrtzi at gmail.com
Tue Feb 17 12:46:26 PST 2009


Author: akirtzidis
Date: Tue Feb 17 14:46:25 2009
New Revision: 64808

URL: http://llvm.org/viewvc/llvm-project?rev=64808&view=rev
Log:
Remove one more redundant dyn_cast.

Modified:
    cfe/trunk/lib/Sema/SemaDecl.cpp

Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=64808&r1=64807&r2=64808&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Tue Feb 17 14:46:25 2009
@@ -105,9 +105,6 @@
   if (isa<ObjCMethodDecl>(DC))
     return Context.getTranslationUnitDecl();
 
-  if (Decl *D = dyn_cast<Decl>(DC))
-    return D->getLexicalDeclContext();
-
   return DC->getLexicalParent();
 }
 





More information about the cfe-commits mailing list