Index: src/compiler/instruction-selector.cc |
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc |
index 8c94129713bd22696470d3dab36801b2b65b5cde..29f8ed4dc7aaab04139900e61122a74be76994a0 100644 |
--- a/src/compiler/instruction-selector.cc |
+++ b/src/compiler/instruction-selector.cc |
@@ -609,7 +609,8 @@ void InstructionSelector::VisitNode(Node* node) { |
case IrOpcode::kFinish: |
return MarkAsReference(node), VisitFinish(node); |
case IrOpcode::kParameter: { |
- MachineType type = linkage()->GetParameterType(OpParameter<int>(node)); |
+ MachineType type = |
+ linkage()->GetParameterType(ParameterIndexOf(node->op())); |
MarkAsRepresentation(type, node); |
return VisitParameter(node); |
} |
@@ -968,7 +969,7 @@ void InstructionSelector::VisitFinish(Node* node) { |
void InstructionSelector::VisitParameter(Node* node) { |
OperandGenerator g(this); |
- int index = OpParameter<int>(node); |
+ int index = ParameterIndexOf(node->op()); |
Emit(kArchNop, |
g.DefineAsLocation(node, linkage()->GetParameterLocation(index), |
linkage()->GetParameterType(index))); |