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 a11c33b700374a3c391fb7969896338c0de287b0..4b348882ffb20577da637e221f0335e547d03872 100644 |
--- a/runtime/vm/flow_graph_type_propagator.cc |
+++ b/runtime/vm/flow_graph_type_propagator.cc |
@@ -249,8 +249,8 @@ void FlowGraphTypePropagator::VisitCheckClassId(CheckClassIdInstr* check) { |
LoadClassIdInstr* load_cid = |
check->value()->definition()->OriginalDefinition()->AsLoadClassId(); |
- if (load_cid != NULL) { |
- SetCid(load_cid->object()->definition(), check->cid()); |
+ if (load_cid != NULL && check->cids().IsSingleCid()) { |
+ SetCid(load_cid->object()->definition(), check->cids().cid_start); |
} |
} |