summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclCXX.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-09-10 02:11:07 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-09-10 02:11:07 +0000
commitac1f2abd938745b06c7044cc5bcf03f619b24f36 (patch)
tree7234c545e6940954d6a5a781f8cb8c29536e1c55 /clang/lib/Sema/SemaDeclCXX.cpp
parent97f0a0f28d88c293603a67b521147a830b454b55 (diff)
downloadbcm5719-llvm-ac1f2abd938745b06c7044cc5bcf03f619b24f36.tar.gz
bcm5719-llvm-ac1f2abd938745b06c7044cc5bcf03f619b24f36.zip
Use Sema::isDeclInScope instead of IdentifierResolver::isDeclInScope.
llvm-svn: 56042
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclCXX.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp
index cb8ffd3f572..85097cabd4f 100644
--- a/clang/lib/Sema/SemaDeclCXX.cpp
+++ b/clang/lib/Sema/SemaDeclCXX.cpp
@@ -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
OpenPOWER on IntegriCloud