File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -2047,6 +2047,13 @@ StringRef CodeGenModule::getMangledName(GlobalDecl GD) {
20472047 GD.getWithKernelReferenceKind (KernelReferenceKind::Kernel),
20482048 ND));
20492049
2050+ // This invariant should hold true in the future.
2051+ // Prior work: https://discourse.llvm.org/t/rfc-clang-diagnostic-for-demangling-failures/82835/8
2052+ // https://github.com/llvm/llvm-project/issues/111345
2053+ // assert(llvm::isMangledName(MangledName) &&
2054+ // llvm::demangle(MangledName) != MangledName &&
2055+ // "LLVM demangler must demangle clang-generated names");
2056+
20502057 auto Result = Manglings.insert (std::make_pair (MangledName, GD));
20512058 return MangledDeclNames[CanonicalGD] = Result.first ->first ();
20522059}
You can’t perform that action at this time.
0 commit comments