Use Sema::isDeclInScope instead of IdentifierResolver::isDeclInScope.

llvm-svn: 56042
This commit is contained in:
Argyrios Kyrtzidis 2008-09-10 02:11:07 +00:00
parent 97f0a0f28d
commit ac1f2abd93
1 changed files with 1 additions and 2 deletions

View File

@ -502,8 +502,7 @@ Sema::DeclTy *Sema::ActOnStartNamespaceDef(Scope *NamespcScope,
LookupDecl(II, Decl::IDNS_Tag | Decl::IDNS_Ordinary, DeclRegionScope,
/*enableLazyBuiltinCreation=*/false);
if (PrevDecl &&
IdResolver.isDeclInScope(PrevDecl, CurContext, DeclRegionScope)) {
if (PrevDecl && isDeclInScope(PrevDecl, CurContext, DeclRegionScope)) {
if (NamespaceDecl *OrigNS = dyn_cast<NamespaceDecl>(PrevDecl)) {
// This is an extended namespace definition.
// Attach this namespace decl to the chain of extended namespace