Index: runtime/vm/flow_graph_inliner.cc |
diff --git a/runtime/vm/flow_graph_inliner.cc b/runtime/vm/flow_graph_inliner.cc |
index cfffa8f6ad25f660d83c008e8ab1baa6fe2f5c80..930da8dd41c235c664bacb15c141b9c091d91138 100644 |
--- a/runtime/vm/flow_graph_inliner.cc |
+++ b/runtime/vm/flow_graph_inliner.cc |
@@ -700,7 +700,8 @@ class CallSiteInliner : public ValueObject { |
// Load IC data for the callee. |
ZoneGrowableArray<const ICData*>* ic_data_array = |
new(Z) ZoneGrowableArray<const ICData*>(); |
- function.RestoreICDataMap(ic_data_array); |
+ const bool clone_descriptors = Compiler::IsBackgroundCompilation(); |
+ function.RestoreICDataMap(ic_data_array, clone_descriptors); |
// Build the callee graph. |
InlineExitCollector* exit_collector = |