Index: runtime/vm/flow_graph_builder.cc |
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc |
index 98c184685cd5564ce476ff84af2a2e9bc66bb1ff..d1e0b857c40340aed606382fbb1d3d87c7f6896a 100644 |
--- a/runtime/vm/flow_graph_builder.cc |
+++ b/runtime/vm/flow_graph_builder.cc |
@@ -2806,6 +2806,9 @@ void EffectGraphVisitor::VisitConstructorCallNode(ConstructorCallNode* node) { |
// (0) type-arguments, (1) length. |
ASSERT(!LoadFieldInstr::IsFixedLengthArrayCid(result_cid) || |
arguments->length() == 2); |
+ } else if (node->constructor().recognized_kind() != |
+ MethodRecognizer::kUnknown) { |
+ call->set_result_cid(MethodRecognizer::ResultCid(node->constructor())); |
} |
ReturnDefinition(call); |
return; |