diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-10-09 21:08:19 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-10-09 21:08:19 +0000 |
| commit | 6e98cd32dce336ebac8382b00f4a03a5a0e99651 (patch) | |
| tree | 4f4daa4fdf38e018c2eb084a2fe7914886d4866a /llvm/lib/CodeGen/ScheduleDAGInstrs.cpp | |
| parent | 3ce825ed26684e4105e6606c8862edfc713b9d3a (diff) | |
| download | bcm5719-llvm-6e98cd32dce336ebac8382b00f4a03a5a0e99651.tar.gz bcm5719-llvm-6e98cd32dce336ebac8382b00f4a03a5a0e99651.zip | |
CodeGen: Avoid more ilist iterator implicit conversions, NFC
llvm-svn: 249903
Diffstat (limited to 'llvm/lib/CodeGen/ScheduleDAGInstrs.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/ScheduleDAGInstrs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp index 39cad7f35d2..d645a418f77 100644 --- a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp +++ b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp @@ -1099,7 +1099,7 @@ static void toggleBundleKillFlag(MachineInstr *MI, unsigned Reg, // Once we set a kill flag on an instruction, we bail out, as otherwise we // might set it on too many operands. We will clear as many flags as we // can though. - MachineBasicBlock::instr_iterator Begin = MI; + MachineBasicBlock::instr_iterator Begin = MI->getIterator(); MachineBasicBlock::instr_iterator End = getBundleEnd(MI); while (Begin != End) { for (MachineOperand &MO : (--End)->operands()) { @@ -1233,7 +1233,7 @@ void ScheduleDAGInstrs::fixupKills(MachineBasicBlock *MBB) { toggleKillFlag(MI, MO); DEBUG(MI->dump()); DEBUG(if (MI->getOpcode() == TargetOpcode::BUNDLE) { - MachineBasicBlock::instr_iterator Begin = MI; + MachineBasicBlock::instr_iterator Begin = MI->getIterator(); MachineBasicBlock::instr_iterator End = getBundleEnd(MI); while (++Begin != End) DEBUG(Begin->dump()); |

