diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-23 23:42:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-23 23:42:17 +0000 |
commit | 44b94c2185f4c1b826ec6003d25370cf2efac219 (patch) | |
tree | 448157d9d176d3ba861114daf247fd4dec1c270d /lib/CodeGen/RegAllocLocal.cpp | |
parent | d1775798607f12b31dc2fc186312673ff417eadd (diff) |
adjust to new live variables interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLocal.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocLocal.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/RegAllocLocal.cpp b/lib/CodeGen/RegAllocLocal.cpp index 5aa04c6cc7..cffc73cbda 100644 --- a/lib/CodeGen/RegAllocLocal.cpp +++ b/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); |