Index: src/compiler/graph-reducer.cc |
diff --git a/src/compiler/graph-reducer.cc b/src/compiler/graph-reducer.cc |
index 6f583d6b6ac4e3f59a2c94ed847c8b600b2f8c75..2ef1ba137dd4a2ebbc914a2cef9f4221c2da9774 100644 |
--- a/src/compiler/graph-reducer.cc |
+++ b/src/compiler/graph-reducer.cc |
@@ -222,7 +222,11 @@ void GraphReducer::ReplaceWithValue(Node* node, Node* value, Node* effect, |
edge.UpdateTo(dead_); |
Revisit(user); |
} else { |
- UNREACHABLE(); |
+ DCHECK_NOT_NULL(control); |
+ edge.UpdateTo(control); |
+ Revisit(user); |
+ // TODO(jarin) Check that the node cannot throw (otherwise, it |
+ // would have to be connected via IfSuccess/IfException). |
} |
} else if (NodeProperties::IsEffectEdge(edge)) { |
DCHECK_NOT_NULL(effect); |