From 2ffee66e10ec91a84d3e62b213b3d674723596d8 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Wed, 12 Jan 2011 23:14:04 +0000 Subject: Fix braino in dominator tree walk. llvm-svn: 123338 --- llvm/lib/CodeGen/LiveDebugVariables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp') 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; -- cgit v1.1