forked from OSchip/llvm-project
Use Sema::isDeclInScope instead of IdentifierResolver::isDeclInScope.
llvm-svn: 56042
This commit is contained in:
parent
97f0a0f28d
commit
ac1f2abd93
|
@ -502,8 +502,7 @@ Sema::DeclTy *Sema::ActOnStartNamespaceDef(Scope *NamespcScope,
|
||||||
LookupDecl(II, Decl::IDNS_Tag | Decl::IDNS_Ordinary, DeclRegionScope,
|
LookupDecl(II, Decl::IDNS_Tag | Decl::IDNS_Ordinary, DeclRegionScope,
|
||||||
/*enableLazyBuiltinCreation=*/false);
|
/*enableLazyBuiltinCreation=*/false);
|
||||||
|
|
||||||
if (PrevDecl &&
|
if (PrevDecl && isDeclInScope(PrevDecl, CurContext, DeclRegionScope)) {
|
||||||
IdResolver.isDeclInScope(PrevDecl, CurContext, DeclRegionScope)) {
|
|
||||||
if (NamespaceDecl *OrigNS = dyn_cast<NamespaceDecl>(PrevDecl)) {
|
if (NamespaceDecl *OrigNS = dyn_cast<NamespaceDecl>(PrevDecl)) {
|
||||||
// This is an extended namespace definition.
|
// This is an extended namespace definition.
|
||||||
// Attach this namespace decl to the chain of extended namespace
|
// Attach this namespace decl to the chain of extended namespace
|
||||||
|
|
Loading…
Reference in New Issue