Index: sdk/lib/_internal/compiler/implementation/ssa/bailout.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/bailout.dart b/sdk/lib/_internal/compiler/implementation/ssa/bailout.dart |
index e4d3ce159c6baf762f0d3bc7cf159d55e4f78a33..8895637991fe1af2b4d730b31d9e482c15be5a81 100644 |
--- a/sdk/lib/_internal/compiler/implementation/ssa/bailout.dart |
+++ b/sdk/lib/_internal/compiler/implementation/ssa/bailout.dart |
@@ -141,7 +141,7 @@ class SsaTypeGuardInserter extends SsaNonSpeculativeTypePropagator |
Element source = instruction.sourceElement; |
if (source != null) { |
DartType sourceType = source.computeType(compiler); |
- if (!sourceType.isMalformed && !sourceType.isDynamic && |
+ if (!sourceType.treatAsDynamic && |
sourceType.kind == TypeKind.INTERFACE) { |
TypeMask sourceMask = new TypeMask.subtype(sourceType); |
TypeMask speculatedMask = speculativeType.computeMask(compiler); |