[llvm] [DLCov][NFC] Annotate intentionally-blank DebugLocs in existing code (PR #136192)

Orlando Cazalet-Hyams via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 11 08:09:53 PDT 2025


================
@@ -2808,6 +2808,7 @@ static bool hoistMulAddAssociation(Instruction &I, Loop &L,
     auto *NewBO =
         BinaryOperator::Create(Ins->getOpcode(), LHS, RHS,
                                Ins->getName() + ".reass", Ins->getIterator());
+    NewBO->setDebugLoc(DebugLoc::getDropped());
----------------
OCHyams wrote:

Previous comment said

> it should be the other way around (i.e. this uses getDropped() and the above keeps using dropLocation()

"the above" referring to this one here, I think? maybe I'm confused about which we're talking about now though (thanks github for evaporating my comments)

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


More information about the llvm-commits mailing list