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

Stephen Tozer via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 29 12:23:14 PDT 2025


================
@@ -2249,7 +2249,7 @@ bool llvm::promoteLoopAccessesToScalars(
     if (SawUnorderedAtomic)
       PreheaderLoad->setOrdering(AtomicOrdering::Unordered);
     PreheaderLoad->setAlignment(Alignment);
-    PreheaderLoad->setDebugLoc(DebugLoc());
+    PreheaderLoad->dropLocation();
----------------
SLTozer wrote:

I think this is a mistake on my part, along with replacing `dropLocation()` with `DebugLoc::getDropped()` above - it should be the other way around (i.e. this uses `getDropped()` and the above keeps using `dropLocation()`).

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


More information about the llvm-commits mailing list