| Index: src/compiler/instruction-selector.cc
|
| diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc
|
| index f204bb849e4045acef928a2068130f5572112cd4..8972a39b76a70f3f50e227428fedd896054f44ac 100644
|
| --- a/src/compiler/instruction-selector.cc
|
| +++ b/src/compiler/instruction-selector.cc
|
| @@ -1984,7 +1984,8 @@ void InstructionSelector::VisitReturn(Node* ret) {
|
| DCHECK_GE(input_count, 1);
|
| auto value_locations = zone()->NewArray<InstructionOperand>(input_count);
|
| Node* pop_count = ret->InputAt(0);
|
| - value_locations[0] = pop_count->opcode() == IrOpcode::kInt32Constant
|
| + value_locations[0] = (pop_count->opcode() == IrOpcode::kInt32Constant ||
|
| + pop_count->opcode() == IrOpcode::kInt64Constant)
|
| ? g.UseImmediate(pop_count)
|
| : g.UseRegister(pop_count);
|
| for (int i = 1; i < input_count; ++i) {
|
|
|