| 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 6431bbba1bd45d396e7e0084bfcf45e08950e5d9..1af507b12dca898ff8eb1562b81f9fd4fad29156 100644
|
| --- a/pkg/compiler/lib/src/ssa/codegen.dart
|
| +++ b/pkg/compiler/lib/src/ssa/codegen.dart
|
| @@ -1889,7 +1889,13 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
|
|
|
| visitInvokeStatic(HInvokeStatic node) {
|
| MemberEntity element = node.element;
|
| - node.instantiatedTypes?.forEach(_registry.registerInstantiation);
|
| + List<DartType> instantiatedTypes = node.instantiatedTypes;
|
| +
|
| + if (instantiatedTypes != null && !instantiatedTypes.isEmpty) {
|
| + instantiatedTypes.forEach((type) {
|
| + _registry.registerInstantiation(type);
|
| + });
|
| + }
|
|
|
| List<js.Expression> arguments = visitArguments(node.inputs, start: 0);
|
|
|
|
|