summaryrefslogtreecommitdiff
path: root/lib/CodeGen/VirtRegMap.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2012-01-19 07:46:36 +0000
committerEvan Cheng <evan.cheng@apple.com>2012-01-19 07:46:36 +0000
commit3f9c251e40dac7503f7ae455fab89bdc359c7b85 (patch)
tree865b603f15be8dd01af84e5a1d614164d459ae4e /lib/CodeGen/VirtRegMap.cpp
parent46ada15d425c0f075853adff14927bbfc7fc39dc (diff)
downloadllvm-3f9c251e40dac7503f7ae455fab89bdc359c7b85.tar.gz
llvm-3f9c251e40dac7503f7ae455fab89bdc359c7b85.tar.bz2
llvm-3f9c251e40dac7503f7ae455fab89bdc359c7b85.tar.xz
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.cpp4
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;