diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-19 07:02:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-19 07:02:09 +0000 |
commit | ba1bd5c54d941d682ac7e946a51604f05cf470e7 (patch) | |
tree | a460dbfabecfbd2d5143876950434da1615cf11c /lib/AST/DeclBase.cpp | |
parent | bd6c80037626a37ce3936a36d9ae287f475845b7 (diff) |
minor simplification.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclBase.cpp')
-rw-r--r-- | lib/AST/DeclBase.cpp | 6 |
1 files 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<UsingDirectiveDecl>(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(); |