Index: src/compiler/scheduler.cc |
diff --git a/src/compiler/scheduler.cc b/src/compiler/scheduler.cc |
index 402995006b410b9f2fc45df9b53f36b00f677acc..58878a0776bfeb483cb68811df0066db32bbf586 100644 |
--- a/src/compiler/scheduler.cc |
+++ b/src/compiler/scheduler.cc |
@@ -239,7 +239,8 @@ Schedule* Scheduler::ComputeSchedule(Graph* graph) { |
bool had_floating_control = false; |
do { |
Zone tmp_zone(graph->zone()->isolate()); |
- schedule = new (graph->zone()) Schedule(graph->zone()); |
+ schedule = new (graph->zone()) |
+ Schedule(graph->zone(), static_cast<size_t>(graph->NodeCount())); |
Scheduler scheduler(&tmp_zone, graph, schedule); |
scheduler.BuildCFG(); |