[cfe-commits] r65029 - /cfe/trunk/lib/AST/DeclBase.cpp
Chris Lattner
sabre at nondot.org
Wed Feb 18 23:02:10 PST 2009
Author: lattner
Date: Thu Feb 19 01:02:09 2009
New Revision: 65029
URL: http://llvm.org/viewvc/llvm-project?rev=65029&view=rev
Log:
minor simplification.
Modified:
cfe/trunk/lib/AST/DeclBase.cpp
Modified: cfe/trunk/lib/AST/DeclBase.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclBase.cpp?rev=65029&r1=65028&r2=65029&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclBase.cpp (original)
+++ cfe/trunk/lib/AST/DeclBase.cpp Thu Feb 19 01:02:09 2009
@@ -580,9 +580,9 @@
}
// 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();
More information about the cfe-commits
mailing list