Index: src/compiler/code-generator-impl.h |
diff --git a/src/compiler/code-generator-impl.h b/src/compiler/code-generator-impl.h |
index 87feddb9eb604d0da7679d9d1eb54f59999e65a6..1cab854ce8f2759d194c9bfa584db6520075536e 100644 |
--- a/src/compiler/code-generator-impl.h |
+++ b/src/compiler/code-generator-impl.h |
@@ -100,7 +100,7 @@ class InstructionOperandConverter { |
Constant ToConstant(InstructionOperand* op) { |
if (op->IsImmediate()) { |
- return gen_->code()->GetImmediate(ImmediateOperand::cast(op)->index()); |
+ return gen_->code()->GetImmediate(ImmediateOperand::cast(op)); |
} |
return gen_->code()->GetConstant( |
ConstantOperand::cast(op)->virtual_register()); |