[llvm] r256169 - [WebAssembly] Convert a regular for loop to a range-based for loop.
Dan Gohman via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 21 09:22:03 PST 2015
Author: djg
Date: Mon Dec 21 11:22:02 2015
New Revision: 256169
URL: http://llvm.org/viewvc/llvm-project?rev=256169&view=rev
Log:
[WebAssembly] Convert a regular for loop to a range-based for loop.
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp?rev=256169&r1=256168&r2=256169&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp Mon Dec 21 11:22:02 2015
@@ -66,8 +66,7 @@ bool WebAssemblyInstrInfo::AnalyzeBranch
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.
More information about the llvm-commits
mailing list