================
@@ -2675,6 +2687,15 @@ StringRef CodeGenModule::getMangledName(GlobalDecl GD) {
   //        "LLVM demangler must demangle clang-generated names");
 
   auto Result = Manglings.insert(std::make_pair(MangledName, GD));
+  if (!Result.second &&
+      areDistinctInternalGlobalModuleEntities(GD, Result.first->second)) {
----------------
ChuanqiXu9 wrote:

And we hope we can have a flag to control this as this is not conforming after 
all.

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

Reply via email to