Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 8d58c288b20c0603381b70ac34e4c4b1b1248fde..5d617aea38636aec979c11a087f665b40dbc30ad 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -1686,9 +1686,7 @@ Node* BytecodeGraphBuilder::MakeNode(const Operator* op, int value_input_count, |
int context_index = exception_handlers_.top().context_register_; |
CatchPrediction prediction = exception_handlers_.top().pred_; |
interpreter::Register context_register(context_index); |
- IfExceptionHint hint = prediction == CatchPrediction::CAUGHT |
- ? IfExceptionHint::kLocallyCaught |
- : IfExceptionHint::kLocallyUncaught; |
+ IfExceptionHint hint = ExceptionHintFromCatchPrediction(prediction); |
Environment* success_env = environment()->CopyForConditional(); |
const Operator* op = common()->IfException(hint); |
Node* effect = environment()->GetEffectDependency(); |