Index: runtime/vm/flow_graph_type_propagator.cc |
diff --git a/runtime/vm/flow_graph_type_propagator.cc b/runtime/vm/flow_graph_type_propagator.cc |
index be1366cdbf26d777d90435cf2861f4d09008583e..0a60fdfff8d58fa0ff04ee17c3978c7d2cdacce5 100644 |
--- a/runtime/vm/flow_graph_type_propagator.cc |
+++ b/runtime/vm/flow_graph_type_propagator.cc |
@@ -1022,7 +1022,9 @@ CompileType StaticCallInstr::ComputeType() const { |
return CompileType::FromAbstractType(result_type); |
} |
- return CompileType::Dynamic(); |
+ return (function_.recognized_kind() != MethodRecognizer::kUnknown) |
+ ? CompileType::FromCid(MethodRecognizer::ResultCid(function_)) |
+ : CompileType::Dynamic(); |
} |