Index: src/compiler/x64/instruction-selector-x64.cc |
diff --git a/src/compiler/x64/instruction-selector-x64.cc b/src/compiler/x64/instruction-selector-x64.cc |
index ecb99f34f4618903d1e0c77622611d274e2cfab4..edcf62a5ecbcd19db8a68d1a0c2abf08ecd508c9 100644 |
--- a/src/compiler/x64/instruction-selector-x64.cc |
+++ b/src/compiler/x64/instruction-selector-x64.cc |
@@ -793,9 +793,10 @@ void VisitDiv(InstructionSelector* selector, Node* node, ArchOpcode opcode) { |
void VisitMod(InstructionSelector* selector, Node* node, ArchOpcode opcode) { |
X64OperandGenerator g(selector); |
- selector->Emit(opcode, g.DefineAsFixed(node, rdx), |
- g.UseFixed(node->InputAt(0), rax), |
- g.UseUniqueRegister(node->InputAt(1))); |
+ InstructionOperand temps[] = {g.TempRegister(rax)}; |
+ selector->Emit( |
+ opcode, g.DefineAsFixed(node, rdx), g.UseFixed(node->InputAt(0), rax), |
+ g.UseUniqueRegister(node->InputAt(1)), arraysize(temps), temps); |
} |
} // namespace |