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 35025f1eed9ae6ba322701adc5044ef9d79974ca..7ac2516bb0dbdd158eb0b81dd613ffa6f3bd72dd 100644 |
--- a/runtime/vm/flow_graph_type_propagator.cc |
+++ b/runtime/vm/flow_graph_type_propagator.cc |
@@ -635,7 +635,7 @@ const AbstractType* CompileType::ToAbstractType() { |
// VM-internal objects don't have a compile-type. Return dynamic-type |
// in this case. |
- if (cid_ < kInstanceCid) { |
+ if ((cid_ < kInstanceCid) || (cid_ == kTypeArgumentsCid)) { |
type_ = &Object::dynamic_type(); |
return type_; |
} |
@@ -880,7 +880,7 @@ CompileType ConstantInstr::ComputeType() const { |
intptr_t cid = value().GetClassId(); |
- if (value().IsInstance()) { |
+ if ((cid != kTypeArgumentsCid) && value().IsInstance()) { |
// Allocate in old-space since this may be invoked from the |
// background compiler. |
return CompileType::Create( |