Index: src/compiler/x64/code-generator-x64.cc |
diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc |
index 5a54e5637e9ad91d19a5e2d09e5a799b80dcc82d..3e5485942959594e55c98a7e9eafeb48eb807ba6 100644 |
--- a/src/compiler/x64/code-generator-x64.cc |
+++ b/src/compiler/x64/code-generator-x64.cc |
@@ -34,12 +34,7 @@ class X64OperandConverter : public InstructionOperandConverter { |
Operand OutputOperand() { return ToOperand(instr_->Output()); } |
Immediate ToImmediate(InstructionOperand* operand) { |
- Constant constant = ToConstant(operand); |
- if (constant.type() == Constant::kInt32) { |
- return Immediate(constant.ToInt32()); |
- } |
- UNREACHABLE(); |
- return Immediate(-1); |
+ return Immediate(ToConstant(operand).ToInt32()); |
} |
Operand ToOperand(InstructionOperand* op, int extra = 0) { |