summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-01-12 23:14:04 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-01-12 23:14:04 +0000
commit12a40314a91511b65bc83782fd5a3e981331adb1 (patch)
tree7f31678245656f69e7d4ddb41fab441b5cefc9db /lib/CodeGen/LiveDebugVariables.cpp
parentf203627f21614cbef9526aa791b3e7b0493d1e41 (diff)
downloadllvm-12a40314a91511b65bc83782fd5a3e981331adb1.tar.gz
llvm-12a40314a91511b65bc83782fd5a3e981331adb1.tar.bz2
llvm-12a40314a91511b65bc83782fd5a3e981331adb1.tar.xz
Fix braino in dominator tree walk.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123338 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r--lib/CodeGen/LiveDebugVariables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveDebugVariables.cpp b/lib/CodeGen/LiveDebugVariables.cpp
index 1e2dba29b9..fc6275fa5e 100644
--- a/lib/CodeGen/LiveDebugVariables.cpp
+++ b/lib/CodeGen/LiveDebugVariables.cpp
@@ -405,7 +405,7 @@ void UserValue::extendDef(SlotIndex Idx, unsigned LocNo,
SlotIndex Start = Todo.pop_back_val();
MachineBasicBlock *MBB = LIS.getMBBFromIndex(Start);
SlotIndex Stop = LIS.getMBBEndIdx(MBB);
- LocMap::iterator I = locInts.find(Idx);
+ LocMap::iterator I = locInts.find(Start);
// Limit to VNI's live range.
bool ToEnd = true;