| Index: runtime/vm/flow_graph_builder.cc
|
| diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
|
| index 7e14c538ddf6ee6ab6b56bfa73f25b419e98f076..48411b41d2a00c27cbfc09744348b5b5fd69f214 100644
|
| --- a/runtime/vm/flow_graph_builder.cc
|
| +++ b/runtime/vm/flow_graph_builder.cc
|
| @@ -2115,6 +2115,12 @@ void EffectGraphVisitor::VisitForNode(ForNode* node) {
|
| Append(for_body);
|
| exit_ = nested_loop.break_target(); // May be NULL.
|
| } else {
|
| + EffectGraphVisitor for_test_preamble(owner());
|
| + if (node->condition_preamble() != NULL) {
|
| + node->condition_preamble()->Visit(&for_test_preamble);
|
| + Append(for_test_preamble);
|
| + }
|
| +
|
| TestGraphVisitor for_test(owner(), node->condition()->token_pos());
|
| node->condition()->Visit(&for_test);
|
| Append(for_test);
|
|
|