Skip to content

Commit 7355223

Browse files
committed
Also rename an existing 'DVR' in the same scope as a 'DPV'
1 parent 48e22da commit 7355223

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/Utils/Local.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2657,13 +2657,13 @@ static bool rewriteDebugUsers(
26572657
if (UndefOrSalvageDVR.count(DVR))
26582658
continue;
26592659

2660-
DbgValReplacement DVR = RewriteDVRExpr(*DVR);
2660+
DbgValReplacement DVRepl = RewriteDVRExpr(*DVR);
26612661
if (!DVR)
26622662
continue;
26632663

26642664
DVR->replaceVariableLocationOp(&From, &To);
2665-
DVR->setExpression(*DVR);
2666-
LLVM_DEBUG(dbgs() << "REWRITE: " << DVR << '\n');
2665+
DVR->setExpression(*DVRepl);
2666+
LLVM_DEBUG(dbgs() << "REWRITE: " << DVRepl << '\n');
26672667
Changed = true;
26682668
}
26692669

0 commit comments

Comments
 (0)