[clang] [clang][MSVC] Correct mangling of thread-safe static initialization variables. (PR #85300)

via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 15 02:30:23 PDT 2024


================
@@ -3920,7 +3920,8 @@ void MicrosoftMangleContextImpl::mangleThreadSafeStaticGuardVariable(
   msvc_hashing_ostream MHO(Out);
   MicrosoftCXXNameMangler Mangler(*this, MHO);
 
-  Mangler.getStream() << "?$TSS" << GuardNum << '@';
+  Mangler.getStream() << "?";
+  Mangler.mangleSourceName("$TSS" + llvm::utostr(GuardNum));
----------------
zmodem wrote:

Can you file a bug for followup on these?

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


More information about the cfe-commits mailing list