Skip to content

Commit 45e2d70

Browse files
author
git apple-llvm automerger
committed
Merge commit '2399497c9d68' from llvm.org/main into next
2 parents e0db6a6 + 2399497 commit 45e2d70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/SSAUpdater.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ void SSAUpdater::UpdateDebugValues(Instruction *I,
216216
void SSAUpdater::UpdateDebugValue(Instruction *I, DbgValueInst *DbgValue) {
217217
BasicBlock *UserBB = DbgValue->getParent();
218218
if (HasValueForBlock(UserBB)) {
219-
Value *NewVal = GetValueInMiddleOfBlock(UserBB);
219+
Value *NewVal = GetValueAtEndOfBlock(UserBB);
220220
DbgValue->replaceVariableLocationOp(I, NewVal);
221221
}
222222
else

0 commit comments

Comments
 (0)