summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitd42aba53e688874a3bc7a51eb9c40cd6bb3701b2 (patch)
tree412e9be8359805f30f7fe558c15506898c39e61c /llvm/lib/CodeGen/VirtRegMap.cpp
parent719f6a9947e188bde4bf8d95b27904d7b241c62c (diff)
downloadbcm5719-llvm-d42aba53e688874a3bc7a51eb9c40cd6bb3701b2.tar.gz
bcm5719-llvm-d42aba53e688874a3bc7a51eb9c40cd6bb3701b2.zip
Rewriter should definitly rewrite instructions inside bundles.
llvm-svn: 148464
Diffstat (limited to 'llvm/lib/CodeGen/VirtRegMap.cpp')
-rw-r--r--llvm/lib/CodeGen/VirtRegMap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp
index 4b2bdca30f5..5daa6a7dc15 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;
OpenPOWER on IntegriCloud