Index: src/compiler/js-typed-lowering.cc |
diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc |
index 09d5d1680db3ee37b4bdaa8cfb80de75b0cf1223..4df056b769f7879fac977bb407ca2f0daafb9c4d 100644 |
--- a/src/compiler/js-typed-lowering.cc |
+++ b/src/compiler/js-typed-lowering.cc |
@@ -1117,8 +1117,8 @@ Reduction JSTypedLowering::ReduceJSCreateClosure(Node* node) { |
CallDescriptor::kNoFlags); |
const Operator* new_op = common()->Call(desc); |
Node* stub_code = jsgraph()->HeapConstant(callable.code()); |
- node->ReplaceInput(0, jsgraph()->HeapConstant(shared)); |
node->InsertInput(graph()->zone(), 0, stub_code); |
+ node->InsertInput(graph()->zone(), 1, jsgraph()->HeapConstant(shared)); |
node->set_op(new_op); |
return Changed(node); |
} |