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 1138c6a20c562577a773ce53cb6d3d58371f792e..d0ffe7707e57d67f1eb6093a54c55ddaaffc28af 100644 |
--- a/runtime/vm/flow_graph_type_propagator.cc |
+++ b/runtime/vm/flow_graph_type_propagator.cc |
@@ -356,6 +356,8 @@ void FlowGraphTypePropagator::StrengthenAssertWith(Instruction* check) { |
new CheckSmiInstr(assert->value()->Copy(zone()), |
assert->env()->deopt_id(), |
check->token_pos()); |
+ check_clone->AsCheckSmi()->set_licm_hoisted( |
+ check->AsCheckSmi()->licm_hoisted()); |
} else { |
ASSERT(check->IsCheckClass()); |
check_clone = |
@@ -363,6 +365,8 @@ void FlowGraphTypePropagator::StrengthenAssertWith(Instruction* check) { |
assert->env()->deopt_id(), |
check->AsCheckClass()->unary_checks(), |
check->token_pos()); |
+ check_clone->AsCheckClass()->set_licm_hoisted( |
+ check->AsCheckClass()->licm_hoisted()); |
} |
ASSERT(check_clone != NULL); |
ASSERT(assert->deopt_id() == assert->env()->deopt_id()); |