projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8080c4f
)
[WebAssembly] Convert a regular for loop to a range-based for loop.
author
Dan Gohman
<dan433584@gmail.com>
Mon, 21 Dec 2015 17:22:02 +0000
(17:22 +0000)
committer
Dan Gohman
<dan433584@gmail.com>
Mon, 21 Dec 2015 17:22:02 +0000
(17:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256169
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
b/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
index 41c8811ea761c4c81fb9f10a7c6021bfe598781d..5e7663cdb5063f7190a4e966e71bfce47b04da38 100644
(file)
--- 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.