[WebAssembly] Convert a regular for loop to a range-based for loop.

llvm-svn: 256169
This commit is contained in:
Dan Gohman 2015-12-21 17:22:02 +00:00
parent d9b4cdb68d
commit d544e0c100
1 changed files with 1 additions and 2 deletions

View File

@ -66,8 +66,7 @@ bool WebAssemblyInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB,
SmallVectorImpl<MachineOperand> &Cond,
bool /*AllowModify*/) const {
bool HaveCond = false;
for (MachineInstr &MI : iterator_range<MachineBasicBlock::instr_iterator>(
MBB.getFirstInstrTerminator(), MBB.instr_end())) {
for (MachineInstr &MI : MBB.terminators()) {
switch (MI.getOpcode()) {
default:
// Unhandled instruction; bail out.