Index: pkg/compiler/lib/src/tree_ir/tree_ir_integrity.dart |
diff --git a/pkg/compiler/lib/src/tree_ir/tree_ir_integrity.dart b/pkg/compiler/lib/src/tree_ir/tree_ir_integrity.dart |
index 5afd2da9d73baaec13081fe6f81a3f870cbfc49c..fa3349248af268fad7be5a1711f723302cadc975 100644 |
--- a/pkg/compiler/lib/src/tree_ir/tree_ir_integrity.dart |
+++ b/pkg/compiler/lib/src/tree_ir/tree_ir_integrity.dart |
@@ -102,9 +102,10 @@ class CheckTreeIntegrity extends RecursiveVisitor { |
visitJumpTargetBody(node); |
} |
- visitWhileCondition(WhileCondition node) { |
+ visitFor(For node) { |
visitExpression(node.condition); |
visitJumpTargetBody(node); |
+ node.updates.forEach(visitExpression); |
visitStatement(node.next); |
} |