diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp index dc59f3dd1f1573..1b59f217e3c1a2 100644 --- a/clang/lib/AST/DeclBase.cpp +++ b/clang/lib/AST/DeclBase.cpp @@ -1171,10 +1171,8 @@ bool DeclContext::isDependentContext() const { 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,