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 2ee8ed12520d69003970ed9446da48be58a76ca4..2162cfed4e9f175bcd6d3796fc75963cf9353261 100644 |
--- a/runtime/vm/flow_graph_type_propagator.cc |
+++ b/runtime/vm/flow_graph_type_propagator.cc |
@@ -237,6 +237,13 @@ void FlowGraphTypePropagator::VisitCheckSmi(CheckSmiInstr* check) { |
} |
+void FlowGraphTypePropagator::VisitCheckArrayBound( |
+ CheckArrayBoundInstr* check) { |
+ // Array bounds checks also test index for smi. |
+ SetCid(check->index()->definition(), kSmiCid); |
+} |
+ |
+ |
void FlowGraphTypePropagator::VisitCheckClass(CheckClassInstr* check) { |
if ((check->unary_checks().NumberOfChecks() != 1) || |
!check->Dependencies().IsNone()) { |