[llvm-branch-commits] [clang] release/22.x: [C++20] [Modules] Add VisiblePromoted module ownership kind (#189903) (PR #192885)

Aaron Ballman via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Apr 22 03:50:54 PDT 2026


================
@@ -1575,7 +1575,7 @@ void Sema::makeMergedDefinitionVisible(NamedDecl *ND) {
   if (auto *ED = dyn_cast<EnumDecl>(ND);
       ED && ED->isFromGlobalModule() && !ED->isScoped()) {
     for (auto *ECD : ED->enumerators()) {
-      ECD->setVisibleDespiteOwningModule();
+      ECD->setVisiblePromoted();
----------------
AaronBallman wrote:

It depends on the change; we can backport things that still end up with compatible behavior, but that tends to be an uncommon situation. But this is what https://github.com/llvm/llvm-project/blob/b2f3532e9fb18cb51c6ea87a2de0595baef85f33/clang/include/clang/Serialization/ASTBitCodes.h#L47 is for -- if the changes are incompatible, we'd bump that version number (once during the release, not for each and every incompatible change to serialization).

https://github.com/llvm/llvm-project/pull/192885


More information about the llvm-branch-commits mailing list