diff options
author | Dan Gohman <dan433584@gmail.com> | 2015-12-21 17:22:02 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2015-12-21 17:22:02 +0000 |
commit | ce0413b05c392776df8742f60734c89f35150f59 (patch) | |
tree | 588d1852c31aa9209bd48028e7a9ca36cd4a4671 | |
parent | 8080c4fd47dc0e53e6c7556febc5ee19c9b15482 (diff) |
[WebAssembly] Convert a regular for loop to a range-based for loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256169 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp b/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp index 41c8811ea76..5e7663cdb50 100644 --- a/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp +++ b/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp @@ -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. |