Index: src/compiler/instruction-selector.cc |
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc |
index d8409a3f89c8250155d645b73b189ece198083d4..aeb846dfb768422542366711ffddf9a8ae9c0ef1 100644 |
--- a/src/compiler/instruction-selector.cc |
+++ b/src/compiler/instruction-selector.cc |
@@ -1723,7 +1723,7 @@ void InstructionSelector::VisitIfException(Node* node) { |
void InstructionSelector::VisitOsrValue(Node* node) { |
OperandGenerator g(this); |
- int index = OpParameter<int>(node); |
+ int index = OsrValueIndexOf(node->op()); |
Emit(kArchNop, |
g.DefineAsLocation(node, linkage()->GetOsrValueLocation(index))); |
} |