[clang] [llvm] [DLCov 3/5] Implement DebugLoc origin-tracking (PR #107369)
J. Ryan Stinnett via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 10:30:46 PDT 2024
================
@@ -1279,6 +1279,9 @@ void Instruction::swapProfMetadata() {
void Instruction::copyMetadata(const Instruction &SrcInst,
ArrayRef<unsigned> WL) {
+ if (WL.empty() || is_contained(WL, LLVMContext::MD_dbg))
+ setDebugLoc(SrcInst.getDebugLoc());
----------------
jryans wrote:
Hmm, I'm wondering why this was necessary and if it may have unrelated consequence beyond this patch stack's feature...?
https://github.com/llvm/llvm-project/pull/107369
More information about the llvm-commits
mailing list