diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp --- a/clang/lib/AST/DeclBase.cpp +++ b/clang/lib/AST/DeclBase.cpp @@ -1171,10 +1171,8 @@ bool DeclContext::isTransparentContext() const { if (getDeclKind() == Decl::Enum) return !cast(this)->isScoped(); - else if (getDeclKind() == Decl::LinkageSpec || getDeclKind() == Decl::Export) - return true; - return false; + return getDeclKind() == Decl::LinkageSpec || getDeclKind() == Decl::Export; } static bool isLinkageSpecContext(const DeclContext *DC,