Index: runtime/vm/flow_graph.cc |
diff --git a/runtime/vm/flow_graph.cc b/runtime/vm/flow_graph.cc |
index 26719e9ed29f12a61a536011cc4fb9c2c7604ede..e57e89faa7b69f7d81554c4ccc55a91eef705ef2 100644 |
--- a/runtime/vm/flow_graph.cc |
+++ b/runtime/vm/flow_graph.cc |
@@ -494,7 +494,9 @@ void FlowGraph::Rename(GrowableArray<PhiInstr*>* live_phis) { |
} |
// Name global constants. |
- graph_entry_->constant_null()->set_ssa_temp_index(alloc_ssa_temp_index()); |
+ ConstantInstr* constant_null = new ConstantInstr(Object::ZoneHandle()); |
+ constant_null->set_ssa_temp_index(alloc_ssa_temp_index()); |
+ graph_entry_->set_constant_null(constant_null); |
// Initialize start environment. |
GrowableArray<Definition*> start_env(variable_count()); |