[llvm] [Transforms] Debug values are not remapped when cloning. (PR #87747)

Orlando Cazalet-Hyams via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 15 03:33:50 PDT 2024


================
@@ -136,6 +137,8 @@ void DbgVariableIntrinsic::replaceVariableLocationOp(Value *OldValue,
   auto Locations = location_ops();
   auto OldIt = find(Locations, OldValue);
   if (OldIt == Locations.end()) {
+    if (AllowEmpty)
+      return;
----------------
OCHyams wrote:

Ah I see, yeah that makes sense. Thanks!

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


More information about the llvm-commits mailing list