diff options
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/AST/Decl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp index c75cf20eb38..83f2c53a7c6 100644 --- a/clang/lib/AST/Decl.cpp +++ b/clang/lib/AST/Decl.cpp @@ -976,7 +976,7 @@ getExplicitVisibilityAux(const NamedDecl *ND, kind); // Use the most recent declaration. - if (!IsMostRecent) { + if (!IsMostRecent && !isa<NamespaceDecl>(ND)) { const NamedDecl *MostRecent = ND->getMostRecentDecl(); if (MostRecent != ND) return getExplicitVisibilityAux(MostRecent, kind, true); |

