| Index: pkg/compiler/lib/src/ssa/codegen.dart
|
| diff --git a/pkg/compiler/lib/src/ssa/codegen.dart b/pkg/compiler/lib/src/ssa/codegen.dart
|
| index 6faf0b401400a35872cb824e1c11e37e1418890b..abd0314aa45d4ca41cd3399deef69fe4e94f619a 100644
|
| --- a/pkg/compiler/lib/src/ssa/codegen.dart
|
| +++ b/pkg/compiler/lib/src/ssa/codegen.dart
|
| @@ -1943,7 +1943,12 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
|
| if (node.element.isClosure) {
|
| registry.registerInstantiatedClass(node.element);
|
| }
|
| - node.instantiatedTypes?.forEach(registry.registerInstantiation);
|
| + if (node.instantiatedTypes == null) {
|
| + return;
|
| + }
|
| + node.instantiatedTypes.forEach((type) {
|
| + registry.registerInstantiation(type);
|
| + });
|
| }
|
|
|
| js.Expression newLiteralBool(
|
|
|