Index: src/compiler/scheduler.cc |
diff --git a/src/compiler/scheduler.cc b/src/compiler/scheduler.cc |
index 555625691723db9b9e754931896c28fd51120915..25bdba4961cc6c79fb39d716859dceccc301dc62 100644 |
--- a/src/compiler/scheduler.cc |
+++ b/src/compiler/scheduler.cc |
@@ -365,8 +365,7 @@ class CFGBuilder : public ZoneObject { |
void BuildBlocksForSuccessors(Node* node) { |
size_t const successor_count = node->op()->ControlOutputCount(); |
- Node** successors = |
- zone_->NewArray<Node*>(static_cast<int>(successor_count)); |
+ Node** successors = zone_->NewArray<Node*>(successor_count); |
CollectSuccessorProjections(node, successors, successor_count); |
for (size_t index = 0; index < successor_count; ++index) { |
BuildBlockForNode(successors[index]); |
@@ -457,7 +456,7 @@ class CFGBuilder : public ZoneObject { |
void ConnectSwitch(Node* sw) { |
size_t const successor_count = sw->op()->ControlOutputCount(); |
BasicBlock** successor_blocks = |
- zone_->NewArray<BasicBlock*>(static_cast<int>(successor_count)); |
+ zone_->NewArray<BasicBlock*>(successor_count); |
CollectSuccessorBlocks(sw, successor_blocks, successor_count); |
if (sw == component_entry_) { |