[clang] Adds a pseudonym to clang"s windows mangler... (PR #97792)

via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 20 13:12:02 PDT 2024


================
@@ -1938,12 +1946,23 @@ void MicrosoftCXXNameMangler::mangleTemplateArgValue(QualType T,
         mangleNumber(V.getLValueOffset().getQuantity());
       } else if (!V.hasLValuePath()) {
         // FIXME: This can only happen as an extension. Invent a mangling.
-        break;
+        DiagnosticsEngine &Diags = Context.getDiags();
+        unsigned DiagID =
+            Diags.getCustomDiagID(DiagnosticsEngine::Error,
----------------
memory-thrasher wrote:

Done. I couldn't stand to refactor just one piece of the class so I did all the "cannot mange * yet" errors.
@rnk 

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


More information about the cfe-commits mailing list