summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2010-08-31 00:36:23 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2010-08-31 00:36:23 +0000
commit4f08c96a8b5b152872947cc4a6914e74984c95bf (patch)
treed23c4300d52d43c263455b59d7398d17d89fd994 /clang/lib/AST/DeclBase.cpp
parent4afc236cee0cea69412bfe334f6c62d4920f1c2b (diff)
downloadbcm5719-llvm-4f08c96a8b5b152872947cc4a6914e74984c95bf.tar.gz
bcm5719-llvm-4f08c96a8b5b152872947cc4a6914e74984c95bf.zip
Decl::getEnclosingNamespaceContext has no reason to explicitly skip transparent contexts, and would be wrong to do so with inline namespaces.
llvm-svn: 112562
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r--clang/lib/AST/DeclBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp
index 3dd7abab0c4..9463b6cc731 100644
--- a/clang/lib/AST/DeclBase.cpp
+++ b/clang/lib/AST/DeclBase.cpp
@@ -858,7 +858,7 @@ DeclContext *DeclContext::getLookupContext() {
DeclContext *DeclContext::getEnclosingNamespaceContext() {
DeclContext *Ctx = this;
// Skip through non-namespace, non-translation-unit contexts.
- while (!Ctx->isFileContext() || Ctx->isTransparentContext())
+ while (!Ctx->isFileContext())
Ctx = Ctx->getParent();
return Ctx->getPrimaryContext();
}
OpenPOWER on IntegriCloud