| Index: sdk/lib/_internal/compiler/implementation/ssa/builder.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/ssa/builder.dart (revision 31217)
|
| +++ sdk/lib/_internal/compiler/implementation/ssa/builder.dart (working copy)
|
| @@ -3107,7 +3107,11 @@
|
| // does not look at elements in the list.
|
| TypeMask type =
|
| TypeMaskFactory.inferredTypeForElement(element, compiler);
|
| - if (!type.containsAll(compiler)) instruction.instructionType = type;
|
| + if (!type.containsAll(compiler)) {
|
| + // TODO(13429): The inferrer should know that an element
|
| + // cannot be null.
|
| + instruction.instructionType = type.nonNullable();
|
| + }
|
| } else if (element.isField() && isLazilyInitialized(element)) {
|
| HInstruction instruction = new HLazyStatic(
|
| element,
|
|
|