Index: runtime/vm/kernel_to_il.cc |
diff --git a/runtime/vm/kernel_to_il.cc b/runtime/vm/kernel_to_il.cc |
index 139c2f17448b19a23d78486c358a3b9297a3c524..f5c2b833bb09697b1fca3b332673fe9215682d98 100644 |
--- a/runtime/vm/kernel_to_il.cc |
+++ b/runtime/vm/kernel_to_il.cc |
@@ -4053,7 +4053,7 @@ Fragment FlowGraphBuilder::CheckAssignableInCheckedMode( |
const dart::String& dst_name) { |
Fragment instructions; |
if (I->type_checks() && !dst_type.IsDynamicType() && |
- !dst_type.IsObjectType()) { |
+ !dst_type.IsObjectType() && !dst_type.IsVoidType()) { |
LocalVariable* top_of_stack = MakeTemporary(); |
instructions += LoadLocal(top_of_stack); |
instructions += AssertAssignable(dst_type, dst_name); |