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

Orlando Cazalet-Hyams via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 7 22:38:41 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:

Why is this needed now (can you point to a test that fails without it)?

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


More information about the llvm-commits mailing list