Index: src/compiler/mips/instruction-selector-mips.cc |
diff --git a/src/compiler/mips/instruction-selector-mips.cc b/src/compiler/mips/instruction-selector-mips.cc |
index 0c9afb062d331849a0e1270e457e745a5efd3c3c..5ad99307eea22a0d4af57f4fe8904009d8beeaef 100644 |
--- a/src/compiler/mips/instruction-selector-mips.cc |
+++ b/src/compiler/mips/instruction-selector-mips.cc |
@@ -451,8 +451,10 @@ void InstructionSelector::VisitCall(Node* node) { |
opcode |= MiscField::encode(descriptor->flags()); |
// Emit the call instruction. |
+ InstructionOperand** first_output = |
+ buffer.outputs.size() > 0 ? &buffer.outputs.front() : NULL; |
Instruction* call_instr = |
- Emit(opcode, buffer.outputs.size(), &buffer.outputs.front(), |
+ Emit(opcode, buffer.outputs.size(), first_output, |
buffer.instruction_args.size(), &buffer.instruction_args.front()); |
call_instr->MarkAsCall(); |
} |