Index: runtime/vm/flow_graph_optimizer.cc |
diff --git a/runtime/vm/flow_graph_optimizer.cc b/runtime/vm/flow_graph_optimizer.cc |
index 00112dfa88421110d98c9dcde84191982e376bf4..9cedab65a54107586eec149848ec03778a56e011 100644 |
--- a/runtime/vm/flow_graph_optimizer.cc |
+++ b/runtime/vm/flow_graph_optimizer.cc |
@@ -4862,6 +4862,7 @@ void FlowGraphOptimizer::WidenSmiToInt32() { |
smi_op->ReplaceWith(int32_op, NULL); |
} else if (defn->IsPhi()) { |
defn->AsPhi()->set_representation(kUnboxedInt32); |
+ ASSERT(defn->Type()->IsInt()); |
} |
} |
} |