| Index: sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart b/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
|
| index 2b0107718edb420e00e079a85d8aab397837d2d9..9460e6b05a8b3c10bef69fdb36d36b6ba823a8cd 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
|
| @@ -583,7 +583,8 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase {
|
| // raw type.
|
| } else if (!RuntimeTypes.hasTypeArguments(type)) {
|
| TypeMask expressionMask = expressionType.computeMask(compiler);
|
| - TypeMask typeMask = new TypeMask.nonNullSubtype(type);
|
| + TypeMask typeMask = (element == compiler.nullClass)
|
| + ? new TypeMask.subtype(type) : new TypeMask.nonNullSubtype(type);
|
| if (expressionMask.union(typeMask, compiler) == typeMask) {
|
| return graph.addConstantBool(true, compiler);
|
| } else if (expressionMask.intersection(typeMask, compiler).isEmpty) {
|
|
|