]> granicus.if.org Git - clang/commitdiff
Decl::getEnclosingNamespaceContext has no reason to explicitly skip transparent conte...
authorSebastian Redl <sebastian.redl@getdesigned.at>
Tue, 31 Aug 2010 00:36:23 +0000 (00:36 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Tue, 31 Aug 2010 00:36:23 +0000 (00:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112562 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/DeclBase.cpp

index 3dd7abab0c451eb7072931b84043fea94c9b1b7d..9463b6cc731c2b5230880182db44b71508f22adc 100644 (file)
@@ -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();
 }