Index: src/compiler/ia32/code-generator-ia32.cc |
diff --git a/src/compiler/ia32/code-generator-ia32.cc b/src/compiler/ia32/code-generator-ia32.cc |
index 447a8e3b1c75d7302a76c97ccf30543b44efbc57..21141626cc493985eb4d323981117b1840bb3fca 100644 |
--- a/src/compiler/ia32/code-generator-ia32.cc |
+++ b/src/compiler/ia32/code-generator-ia32.cc |
@@ -47,7 +47,8 @@ class IA32OperandConverter : public InstructionOperandConverter { |
} |
DCHECK(op->IsStackSlot() || op->IsDoubleStackSlot()); |
// The linkage computes where all spill slots are located. |
- FrameOffset offset = linkage()->GetFrameOffset(op->index(), frame(), extra); |
+ FrameOffset offset = linkage()->GetFrameOffset( |
+ AllocatedOperand::cast(op)->index(), frame(), extra); |
return Operand(offset.from_stack_pointer() ? esp : ebp, offset.offset()); |
} |