[clang] [llvm] [debuginfo][coro] Fix linkage name for clones of coro functions (PR #141889)

Adrian Vogelsgesang via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 3 05:54:58 PDT 2025


================
@@ -124,7 +124,7 @@ static void resolveTopLevelMetadata(llvm::Function *Fn,
   auto *DIS = Fn->getSubprogram();
   if (!DIS)
     return;
-  auto *NewDIS = DIS->replaceWithDistinct(DIS->clone());
+  auto *NewDIS = llvm::MDNode::replaceWithDistinct(DIS->clone());
----------------
vogelsgesang wrote:

Yep, drive-by. I was looking up how others used the clone method, and was initially confused by this place here, because it called a static method via an object pointer.

Will update the commit message to mention that this is a drive by NFC

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


More information about the llvm-commits mailing list