[llvm] [DebugInfo][Reassociate] Fix missing debug location drop (PR #95355)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 13 07:13:58 PDT 2024
================
@@ -845,6 +845,7 @@ static Value *NegateValue(Value *V, Instruction *BI,
}
TheNeg->moveBefore(*InsertPt->getParent(), InsertPt);
+ TheNeg->dropLocation();
----------------
OCHyams wrote:
One thought - it might be ok to keep the location if it's not being moved out of the block?
https://github.com/llvm/llvm-project/pull/95355
More information about the llvm-commits
mailing list