Index: src/compiler/node-properties.cc |
diff --git a/src/compiler/node-properties.cc b/src/compiler/node-properties.cc |
index 22539cbfb4201c99b9b2b9d286910c86d22a8d78..82bcef280c8b206dc3d38bb7d3434e8749bdd43e 100644 |
--- a/src/compiler/node-properties.cc |
+++ b/src/compiler/node-properties.cc |
@@ -369,7 +369,7 @@ MaybeHandle<Context> NodeProperties::GetSpecializationNativeContext( |
return handle(context->native_context()); |
} |
case IrOpcode::kOsrValue: { |
- int const index = OpParameter<int>(node); |
+ int const index = OsrValueIndexOf(node->op()); |
if (index == Linkage::kOsrContextSpillSlotIndex) { |
return native_context; |
} |