[clang] [llvm] [DLCov 3/5] Implement DebugLoc origin-tracking (PR #107369)
J. Ryan Stinnett via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 25 10:48:51 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:
Ah okay, thanks, seems reasonable then!
https://github.com/llvm/llvm-project/pull/107369
More information about the cfe-commits
mailing list