diff options
author | John McCall <rjmccall@apple.com> | 2009-11-11 00:21:18 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-11-11 00:21:18 +0000 |
commit | f7f3d0db754db0500b56d49ac19f795f13965912 (patch) | |
tree | a22ddc56d716d877758c633d4708858b3817997a /lib/Sema/SemaLookup.cpp | |
parent | 0f9fed70cea107b3f79df554e38bd8e98d48fe47 (diff) |
Create a new Scope when parsing a declaration with a C++ scope specifier.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86764 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaLookup.cpp')
-rw-r--r-- | lib/Sema/SemaLookup.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp index 31e64a9f8b..13a66aaca0 100644 --- a/lib/Sema/SemaLookup.cpp +++ b/lib/Sema/SemaLookup.cpp @@ -90,9 +90,6 @@ namespace { assert(InnermostFileDC && InnermostFileDC->isFileContext()); for (; S; S = S->getParent()) { - if (!(S->getFlags() & Scope::DeclScope)) - continue; - if (DeclContext *Ctx = static_cast<DeclContext*>(S->getEntity())) { DeclContext *EffectiveDC = (Ctx->isFileContext() ? Ctx : InnermostFileDC); visit(Ctx, EffectiveDC); |