Index: src/compiler/instruction-selector.cc |
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc |
index 64878e42bc3c3c131e2df485910a7dc00b092bf0..143bd696311781bdda8666e5d614e324feba4738 100644 |
--- a/src/compiler/instruction-selector.cc |
+++ b/src/compiler/instruction-selector.cc |
@@ -284,9 +284,8 @@ void InstructionSelector::InitializeCallBuffer(Node* call, CallBuffer* buffer, |
if (buffer->descriptor->ReturnCount() == 1) { |
buffer->output_nodes.push_back(call); |
} else { |
+ buffer->output_nodes.resize(buffer->descriptor->ReturnCount(), NULL); |
call->CollectProjections(&buffer->output_nodes); |
- DCHECK(buffer->output_nodes.size() <= |
- static_cast<size_t>(buffer->descriptor->ReturnCount())); |
} |
// Filter out the outputs that aren't live because no projection uses them. |