From d42aba53e688874a3bc7a51eb9c40cd6bb3701b2 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 19 Jan 2012 07:46:36 +0000 Subject: [PATCH] Rewriter should definitly rewrite instructions inside bundles. llvm-svn: 148464 --- llvm/lib/CodeGen/VirtRegMap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp index 4b2bdca30f50..5daa6a7dc15d 100644 --- a/llvm/lib/CodeGen/VirtRegMap.cpp +++ b/llvm/lib/CodeGen/VirtRegMap.cpp @@ -119,8 +119,8 @@ void VirtRegMap::rewrite(SlotIndexes *Indexes) { for (MachineFunction::iterator MBBI = MF->begin(), MBBE = MF->end(); MBBI != MBBE; ++MBBI) { DEBUG(MBBI->print(dbgs(), Indexes)); - for (MachineBasicBlock::iterator MII = MBBI->begin(), MIE = MBBI->end(); - MII != MIE;) { + for (MachineBasicBlock::instr_iterator + MII = MBBI->instr_begin(), MIE = MBBI->instr_end(); MII != MIE;) { MachineInstr *MI = MII; ++MII;