[llvm] [DebugInfo][Reassociate] Fix missing debug location drop (PR #95355)

Shan Huang via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 04:52:31 PDT 2024


================
@@ -845,6 +845,7 @@ static Value *NegateValue(Value *V, Instruction *BI,
     }
 
     TheNeg->moveBefore(*InsertPt->getParent(), InsertPt);
+    TheNeg->dropLocation();
----------------
Apochens wrote:

I think that is a solution. I'll do that. 🤔

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


More information about the llvm-commits mailing list