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..52726ef5e3717a66c0f45e335b5ea854738ada27 100644 |
--- a/pkg/compiler/lib/src/ssa/codegen.dart |
+++ b/pkg/compiler/lib/src/ssa/codegen.dart |
@@ -1943,10 +1943,7 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor { |
if (node.element.isClosure) { |
registry.registerInstantiatedClass(node.element); |
} |
- if (node.instantiatedTypes == null) { |
- return; |
- } |
- node.instantiatedTypes.forEach((type) { |
+ node.instantiatedTypes?.forEach((type) { |
Siggi Cherem (dart-lang)
2016/09/07 17:49:38
nit: while we are at it, use a tear-off instead of
sra1
2016/09/07 18:16:06
Done.
|
registry.registerInstantiation(type); |
}); |
} |