diff options
Diffstat (limited to 'deps/v8/src/compiler/common-operator-reducer.cc')
-rw-r--r-- | deps/v8/src/compiler/common-operator-reducer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/v8/src/compiler/common-operator-reducer.cc b/deps/v8/src/compiler/common-operator-reducer.cc index 2f4888617c..388cc66c16 100644 --- a/deps/v8/src/compiler/common-operator-reducer.cc +++ b/deps/v8/src/compiler/common-operator-reducer.cc @@ -438,8 +438,8 @@ Reduction CommonOperatorReducer::ReduceSwitch(Node* node) { for (size_t i = 0; i < projection_count - 1; i++) { Node* if_value = projections[i]; DCHECK_EQ(IrOpcode::kIfValue, if_value->opcode()); - int32_t value_index = OpParameter<int32_t>(if_value->op()); - if (value_index == mswitched.Value()) { + const IfValueParameters& p = IfValueParametersOf(if_value->op()); + if (p.value() == mswitched.Value()) { matched = true; Replace(if_value, control); break; |