[clang] [Clang] prevent setting default lexical access specifier for missing primary declarations (PR #112424)
Oleksandr T. via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 26 15:25:37 PDT 2024
================
@@ -39,7 +39,8 @@ bool Sema::SetMemberAccessSpecifier(NamedDecl *MemberDecl,
AccessSpecifier LexicalAS) {
if (!PrevMemberDecl) {
// Use the lexical access specifier.
- MemberDecl->setAccess(LexicalAS);
----------------
a-tarasyuk wrote:
@shafik could you take a look at the latest changes? thanks
https://github.com/llvm/llvm-project/pull/112424
More information about the cfe-commits
mailing list