Index: pkg/compiler/lib/src/ssa/nodes.dart |
diff --git a/pkg/compiler/lib/src/ssa/nodes.dart b/pkg/compiler/lib/src/ssa/nodes.dart |
index 86be86b83a4d5791fa6722fc39149b0e0b8b9365..ed33909ad348e68b81dcccf3b3018dbf3c013908 100644 |
--- a/pkg/compiler/lib/src/ssa/nodes.dart |
+++ b/pkg/compiler/lib/src/ssa/nodes.dart |
@@ -1340,8 +1340,9 @@ abstract class HInstruction implements Spannable { |
assert(!type.isTypeVariable); |
assert(type.treatAsRaw || type.isFunctionType); |
if (type.isDynamic) return this; |
+ if (type.isVoid) return this; |
if (type == closedWorld.commonElements.objectType) return this; |
- if (type.isVoid || type.isFunctionType || type.isMalformed) { |
+ if (type.isFunctionType || type.isMalformed) { |
return new HTypeConversion( |
type, kind, closedWorld.commonMasks.dynamicType, this); |
} |