| Index: runtime/vm/flow_graph_allocator.cc
|
| diff --git a/runtime/vm/flow_graph_allocator.cc b/runtime/vm/flow_graph_allocator.cc
|
| index ea27ce58d814550e39e6dbffa82a55012e4e7fe2..1e0cb4f1dfb8cb67253aebd0392ea070616a1c2e 100644
|
| --- a/runtime/vm/flow_graph_allocator.cc
|
| +++ b/runtime/vm/flow_graph_allocator.cc
|
| @@ -787,7 +787,8 @@ void FlowGraphAllocator::ProcessOneInstruction(BlockEntryInstr* block,
|
| Definition* def = current->AsDefinition();
|
| if ((def != NULL) &&
|
| (def->AsConstant() != NULL) &&
|
| - (GetLiveRange(def->ssa_temp_index())->first_use() == NULL)) {
|
| + ((def->ssa_temp_index() == -1) ||
|
| + (GetLiveRange(def->ssa_temp_index())->first_use() == NULL))) {
|
| // Drop definitions of constants that have no uses.
|
| locs->set_out(Location::NoLocation());
|
| return;
|
|
|