Index: src/compiler/representation-change.cc |
diff --git a/src/compiler/representation-change.cc b/src/compiler/representation-change.cc |
index 0ebb74fb5cc16135254b613eeb22e8a600a5959a..9777dbb05204f2deb944fa551052b2ef54bbda01 100644 |
--- a/src/compiler/representation-change.cc |
+++ b/src/compiler/representation-change.cc |
@@ -451,7 +451,7 @@ Node* RepresentationChanger::InsertConversion(Node* node, const Operator* op, |
// and also provide it with a frame state. |
Node* effect = NodeProperties::GetEffectInput(use_node); |
Node* control = NodeProperties::GetControlInput(use_node); |
- Node* frame_state = NodeProperties::GetFrameStateInput(use_node, 0); |
+ Node* frame_state = NodeProperties::FindFrameStateBefore(use_node); |
Node* conversion = |
jsgraph()->graph()->NewNode(op, node, frame_state, effect, control); |
NodeProperties::ReplaceControlInput(use_node, control); |