================
@@ -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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to