[clang] [llvm] [DLCov 2/5] Implement DebugLoc coverage tracking (PR #107279)
J. Ryan Stinnett via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 10:09:47 PDT 2024
================
@@ -2080,6 +2081,10 @@ void DwarfDebug::beginInstruction(const MachineInstr *MI) {
}
if (!DL) {
+ // FIXME: We could assert that `DL.getKind() != DebugLocKind::Temporary`
+ // here, or otherwise record any temporary DebugLocs seen to ensure that
+ // transient compiler-generated instructions aren't leaking their DLs to
+ // other instructions.
----------------
jryans wrote:
Hmm yes, reporting such cases somehow does seem valuable... though unclear to me which way is best, so perhaps best left as future work for now.
https://github.com/llvm/llvm-project/pull/107279
More information about the llvm-commits
mailing list