Index: src/compiler/js-inlining-heuristic.cc |
diff --git a/src/compiler/js-inlining-heuristic.cc b/src/compiler/js-inlining-heuristic.cc |
index d86f8b62effe58fd031ecc79ac71149299352e68..9774de28e5f23911e4e1ac1950ce63060fbe73e4 100644 |
--- a/src/compiler/js-inlining-heuristic.cc |
+++ b/src/compiler/js-inlining-heuristic.cc |
@@ -270,6 +270,9 @@ Reduction JSInliningHeuristic::InlineCandidate(Candidate const& candidate) { |
Node* node = calls[i]; |
Reduction const reduction = inliner_.ReduceJSCall(node); |
if (reduction.Changed()) { |
+ // Killing the call node is not strictly necessary, but it is safer to |
+ // make sure we do not resurrect the node. |
+ node->Kill(); |
cumulative_count_ += function->shared()->ast_node_count(); |
} |
} |