Index: src/compiler/js-inlining-heuristic.cc |
diff --git a/src/compiler/js-inlining-heuristic.cc b/src/compiler/js-inlining-heuristic.cc |
index c58b83e3956d1feee53ec48a58ba04451cdc87d2..ec00e9bde412a7c8adbcc67ebb3b9237185df3e3 100644 |
--- a/src/compiler/js-inlining-heuristic.cc |
+++ b/src/compiler/js-inlining-heuristic.cc |
@@ -89,6 +89,7 @@ Reduction JSInliningHeuristic::Reduce(Node* node) { |
void JSInliningHeuristic::Finalize() { |
+ if (candidates_.empty()) return; // Nothing to do without candidates. |
if (FLAG_trace_turbo_inlining) PrintCandidates(); |
while (!candidates_.empty()) { |