Index: runtime/vm/flow_graph_inliner.cc |
diff --git a/runtime/vm/flow_graph_inliner.cc b/runtime/vm/flow_graph_inliner.cc |
index 8a9cd33f3337111040066bdb94e85432aa1aa57d..9a68b00919ec0323c4c90f7b7e165b9fe890ea2d 100644 |
--- a/runtime/vm/flow_graph_inliner.cc |
+++ b/runtime/vm/flow_graph_inliner.cc |
@@ -844,7 +844,7 @@ class CallSiteInliner : public ValueObject { |
// Optimize (a << b) & c patterns, merge instructions. Must occur |
// before 'SelectRepresentations' which inserts conversion nodes. |
- optimizer.TryOptimizePatterns(); |
+ callee_graph->TryOptimizePatterns(); |
DEBUG_ASSERT(callee_graph->VerifyUseLists()); |
} else { |
JitOptimizer optimizer(callee_graph); |
@@ -860,7 +860,7 @@ class CallSiteInliner : public ValueObject { |
// Optimize (a << b) & c patterns, merge instructions. Must occur |
// before 'SelectRepresentations' which inserts conversion nodes. |
- optimizer.TryOptimizePatterns(); |
+ callee_graph->TryOptimizePatterns(); |
DEBUG_ASSERT(callee_graph->VerifyUseLists()); |
} |
} |