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