Index: src/compiler/branch-elimination.cc |
diff --git a/src/compiler/branch-elimination.cc b/src/compiler/branch-elimination.cc |
index 9b36eb106865c52aa1a38dca49b28b497f451a6f..b85e4737d13fc534e90e085e2a33c6898a31cbc7 100644 |
--- a/src/compiler/branch-elimination.cc |
+++ b/src/compiler/branch-elimination.cc |
@@ -143,8 +143,8 @@ Reduction BranchElimination::ReduceLoop(Node* node) { |
Reduction BranchElimination::ReduceMerge(Node* node) { |
// Shortcut for the case when we do not know anything about some |
// input. |
- for (int i = 0; i < node->InputCount(); i++) { |
- if (node_conditions_.Get(node->InputAt(i)) == nullptr) { |
+ for (Node* input : node->inputs()) { |
+ if (node_conditions_.Get(input) == nullptr) { |
return UpdateConditions(node, nullptr); |
} |
} |