diff options
author | Evan Cheng <evan.cheng@apple.com> | 2012-01-19 07:46:36 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2012-01-19 07:46:36 +0000 |
commit | 3f9c251e40dac7503f7ae455fab89bdc359c7b85 (patch) | |
tree | 865b603f15be8dd01af84e5a1d614164d459ae4e /lib/CodeGen/VirtRegMap.cpp | |
parent | 46ada15d425c0f075853adff14927bbfc7fc39dc (diff) |
Rewriter should definitly rewrite instructions inside bundles.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/VirtRegMap.cpp')
-rw-r--r-- | lib/CodeGen/VirtRegMap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp index 4b2bdca30f..5daa6a7dc1 100644 --- a/lib/CodeGen/VirtRegMap.cpp +++ b/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; |