| Index: src/compiler/node-properties.cc | 
| diff --git a/src/compiler/node-properties.cc b/src/compiler/node-properties.cc | 
| index ac9cc34dd9cd1ac577bf2bdf455e4c6fe3ff1d6a..2cf899b6cbf54cc9554d58f2dbb41c54f5c6ff73 100644 | 
| --- a/src/compiler/node-properties.cc | 
| +++ b/src/compiler/node-properties.cc | 
| @@ -158,8 +158,9 @@ void NodeProperties::ReplaceContextInput(Node* node, Node* context) { | 
|  | 
|  | 
| // static | 
| -void NodeProperties::ReplaceControlInput(Node* node, Node* control) { | 
| -  node->ReplaceInput(FirstControlIndex(node), control); | 
| +void NodeProperties::ReplaceControlInput(Node* node, Node* control, int index) { | 
| +  DCHECK(index < node->op()->ControlInputCount()); | 
| +  node->ReplaceInput(FirstControlIndex(node) + index, control); | 
| } | 
|  | 
|  | 
|  |