| Index: runtime/vm/flow_graph_builder.cc
|
| diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
|
| index 5970b44a6a90de1fcda9549f98dfb43b027ca11d..8e87e0aec6fecc42b5a36b8388a7bb41b285c4bd 100644
|
| --- a/runtime/vm/flow_graph_builder.cc
|
| +++ b/runtime/vm/flow_graph_builder.cc
|
| @@ -1914,7 +1914,7 @@ LocalVariable* EffectGraphVisitor::EnterTempLocalScope(Value* value) {
|
| Do(new PushTempInstr(value));
|
| owner()->AllocateTemp();
|
|
|
| - ASSERT(value->definition()->temp_index() == owner()->temp_count());
|
| + ASSERT(value->definition()->temp_index() == (owner()->temp_count() - 1));
|
| intptr_t index = GetCurrentTempLocalIndex();
|
| char name[64];
|
| OS::SNPrint(name, 64, ":tmp_local%" Pd, index);
|
|
|