From ba1bd5c54d941d682ac7e946a51604f05cf470e7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 19 Feb 2009 07:02:09 +0000 Subject: [PATCH] minor simplification. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65029 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/DeclBase.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp index 6b2a1ffc5e..c03c36048a 100644 --- a/lib/AST/DeclBase.cpp +++ b/lib/AST/DeclBase.cpp @@ -580,9 +580,9 @@ void DeclContext::makeDeclVisibleInContextImpl(NamedDecl *D) { } // Put this declaration into the appropriate slot. - if (D->getKind() == Decl::UsingDirective || - D->getIdentifierNamespace() == Decl::IDNS_Tag - || Pos->second.empty()) + if (isa(D) || + D->getIdentifierNamespace() == Decl::IDNS_Tag || + Pos->second.empty()) Pos->second.push_back(D); else if (Pos->second.back()->getIdentifierNamespace() == Decl::IDNS_Tag) { NamedDecl *TagD = Pos->second.back(); -- 2.50.1