aboutsummaryrefslogtreecommitdiff
path: root/llvm/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
commit2ffee66e10ec91a84d3e62b213b3d674723596d8 (patch)
tree96c10ecef810067444e6dcb44c4a4c1c0c65bfff /llvm/lib/CodeGen/LiveDebugVariables.cpp
parent59a7dc95deef20ca25282e85f367214f7f733220 (diff)
downloadllvm-2ffee66e10ec91a84d3e62b213b3d674723596d8.zip
llvm-2ffee66e10ec91a84d3e62b213b3d674723596d8.tar.gz
llvm-2ffee66e10ec91a84d3e62b213b3d674723596d8.tar.bz2
Fix braino in dominator tree walk.
llvm-svn: 123338
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugVariables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp
index 1e2dba2..fc6275f 100644
--- a/llvm/lib/CodeGen/LiveDebugVariables.cpp
+++ b/llvm/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;