forked from OSchip/llvm-project
[WebAssembly] Convert a regular for loop to a range-based for loop.
llvm-svn: 256169
This commit is contained in:
parent
d9b4cdb68d
commit
d544e0c100
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue