================
@@ -322,7 +308,8 @@ Sema::getCurrentMangleNumberContext(const DeclContext *DC) {
         if (LexicalDC->isRecord())
           return DefaultArgument;
     } else if (VarDecl *Var = dyn_cast<VarDecl>(ManglingContextDecl)) {
-      if (Var->getMostRecentDecl()->isInline())
+      if (Var->getMostRecentDecl()->isInline() ||
+          IsExternallyVisibleInModulePurview(Var))
         return InlineVariable;
----------------
jiixyj wrote:

OK, for readability I have split this out into a new context kind 
`ExternallyVisibleVariableInModulePurview` that is treated the same as 
`InlineVariable` and `TemplatedVariable` below.

https://github.com/llvm/llvm-project/pull/179035
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to