[cfe-commits] r56042 - /cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Argiris Kirtzidis
akyrtzi at gmail.com
Tue Sep 9 19:11:07 PDT 2008
Author: akirtzidis
Date: Tue Sep 9 21:11:07 2008
New Revision: 56042
URL: http://llvm.org/viewvc/llvm-project?rev=56042&view=rev
Log:
Use Sema::isDeclInScope instead of IdentifierResolver::isDeclInScope.
Modified:
cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclCXX.cpp?rev=56042&r1=56041&r2=56042&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Tue Sep 9 21:11:07 2008
@@ -502,8 +502,7 @@
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
More information about the cfe-commits
mailing list