| 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 2795ffd481e55c23dfcd5741fa1cf833e9c4719f..986615f1b669b0924a459b550a725f229b3ea327 100644
|
| --- a/runtime/vm/flow_graph_type_propagator.cc
|
| +++ b/runtime/vm/flow_graph_type_propagator.cc
|
| @@ -588,7 +588,11 @@ bool CompileType::IsNull() {
|
|
|
| const AbstractType* CompileType::ToAbstractType() {
|
| if (type_ == NULL) {
|
| - ASSERT(cid_ != kIllegalCid);
|
| + // Type propagation has not run. Return dynamic-type.
|
| + if (cid_ == kIllegalCid) {
|
| + type_ = &Type::ZoneHandle(Type::DynamicType());
|
| + return type_;
|
| + }
|
|
|
| // VM-internal objects don't have a compile-type. Return dynamic-type
|
| // in this case.
|
|
|