| Index: sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/ssa/nodes.dart (revision 31278)
|
| +++ sdk/lib/_internal/compiler/implementation/ssa/nodes.dart (working copy)
|
| @@ -1933,9 +1933,10 @@
|
| bool isCodeMotionInvariant() => true;
|
|
|
| set instructionType(type) {
|
| - assert((type.isEmpty && super.instructionType.isEmpty)
|
| - || !type.isNullable);
|
| - assert(!isConstantNull() || (type.isEmpty && type.isNullable));
|
| + // Only lists can be specialized. The SSA builder uses the
|
| + // inferrer for finding the type of a constant list. We should
|
| + // have the constant know its type instead.
|
| + if (!isConstantList()) return;
|
| super.instructionType = type;
|
| }
|
| }
|
|
|