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