| 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 a001ad58ce0099964c2876cb8685c745ae2c725e..fbc2ec1ed82d9da293bb42bf8ff64233f4d2da9e 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/ssa/bailout.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/ssa/bailout.dart
|
| @@ -112,8 +112,10 @@ class SsaTypeGuardInserter extends HGraphVisitor implements OptimizationPhase {
|
| if (source != null) {
|
| DartType sourceType = source.computeType(compiler);
|
| DartType speculatedType = speculativeType.computeType(compiler);
|
| - if (speculatedType != null
|
| - && !compiler.types.isAssignable(speculatedType, sourceType)) {
|
| + if (speculatedType != null &&
|
| + !speculatedType.isMalformed &&
|
| + !sourceType.isMalformed &&
|
| + !compiler.types.isAssignable(speculatedType, sourceType)) {
|
| return false;
|
| }
|
| }
|
|
|