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 f3f77f8a82fc84465ae6fa7981def4778e4899cd..a96137a39eb0ac05ec36ef2fc2f83720562ac4bf 100644 |
--- a/runtime/vm/flow_graph_type_propagator.cc |
+++ b/runtime/vm/flow_graph_type_propagator.cc |
@@ -256,7 +256,7 @@ void FlowGraphTypePropagator::VisitCheckSmi(CheckSmiInstr* check) { |
void FlowGraphTypePropagator::VisitCheckClass(CheckClassInstr* check) { |
if ((check->unary_checks().NumberOfChecks() != 1) || |
- check->AffectedBySideEffect()) { |
+ !check->Dependencies().IsNone()) { |
// TODO(vegorov): If check is affected by side-effect we can still propagate |
// the type further but not the cid. |
return; |