diff --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp --- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp +++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp @@ -2045,6 +2045,8 @@ func_decl->setConstexprKind(isConstexprSpecified ? ConstexprSpecKind::Constexpr : ConstexprSpecKind::Unspecified); + if (decl_ctx->isRecord()) + func_decl->setAccess(clang::AccessSpecifier::AS_public); SetOwningModule(func_decl, owning_module); if (func_decl) decl_ctx->addDecl(func_decl);