[clang] [clang][codegen] Mention the invariant that LLVM demangler should be … (PR #117346)

Viktoriia Bakalova via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 22 09:58:22 PST 2024


================
@@ -2047,6 +2047,14 @@ StringRef CodeGenModule::getMangledName(GlobalDecl GD) {
                  GD.getWithKernelReferenceKind(KernelReferenceKind::Kernel),
                  ND));
 
+  // This invariant should hold true in the future.
+  // Prior work:
+  // https://discourse.llvm.org/t/rfc-clang-diagnostic-for-demangling-failures/82835/8
+  // https://github.com/llvm/llvm-project/issues/111345
+  // assert(llvm::isMangledName(MangledName) &&
----------------
VitaNuo wrote:

No, it doesn't exist. This was to demonstrate the idea.

Thanks, sure, I can change the text.

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


More information about the cfe-commits mailing list