Index: runtime/vm/flow_graph_builder.cc |
=================================================================== |
--- runtime/vm/flow_graph_builder.cc (revision 44958) |
+++ runtime/vm/flow_graph_builder.cc (working copy) |
@@ -2382,6 +2382,8 @@ |
node->InitializerAt(i)->Visit(&for_value); |
Append(for_value); |
Value* temp_val = for_value.value(); |
+ ASSERT(!node->TempAt(i)->HasIndex() || |
+ (node->TempAt(i)->index() == GetCurrentTempLocalIndex())); |
node->TempAt(i)->set_index(GetCurrentTempLocalIndex()); |
Do(new(Z) PushTempInstr(temp_val)); |
owner()->AllocateTemp(); |