From 469652752c4159b4d8b12f93178ef8313189639e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 23 Aug 2005 23:42:17 +0000 Subject: adjust to new live variables interface llvm-svn: 22992 --- llvm/lib/CodeGen/RegAllocLocal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/RegAllocLocal.cpp') diff --git a/llvm/lib/CodeGen/RegAllocLocal.cpp b/llvm/lib/CodeGen/RegAllocLocal.cpp index 5aa04c6cc78..cffc73cbda0 100644 --- a/llvm/lib/CodeGen/RegAllocLocal.cpp +++ b/llvm/lib/CodeGen/RegAllocLocal.cpp @@ -525,7 +525,7 @@ void RA::AllocateBasicBlock(MachineBasicBlock &MBB) { // for (LiveVariables::killed_iterator KI = LV->killed_begin(MI), KE = LV->killed_end(MI); KI != KE; ++KI) { - unsigned VirtReg = KI->second; + unsigned VirtReg = *KI; unsigned PhysReg = VirtReg; if (MRegisterInfo::isVirtualRegister(VirtReg)) { // If the virtual register was never materialized into a register, it @@ -605,7 +605,7 @@ void RA::AllocateBasicBlock(MachineBasicBlock &MBB) { // for (LiveVariables::killed_iterator KI = LV->dead_begin(MI), KE = LV->dead_end(MI); KI != KE; ++KI) { - unsigned VirtReg = KI->second; + unsigned VirtReg = *KI; unsigned PhysReg = VirtReg; if (MRegisterInfo::isVirtualRegister(VirtReg)) { unsigned &PhysRegSlot = getVirt2PhysRegMapSlot(VirtReg); -- cgit v1.2.3