| 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 3ede5f61b1893d4ed935d9a682b09200ee4adcfb..78a800fb26d7c292928957a81cf661ff1e6f9247 100644
|
| --- a/pkg/compiler/lib/src/ssa/codegen.dart
|
| +++ b/pkg/compiler/lib/src/ssa/codegen.dart
|
| @@ -2070,7 +2070,8 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
|
| // available to 'upgrade' the native object.
|
| TypeConstantValue type = constant;
|
| if (type.representedType.isInterfaceType) {
|
| - registry.registerTypeConstant(type.representedType.element);
|
| + InterfaceType representedType = type.representedType;
|
| + registry.registerTypeConstant(representedType.element);
|
| }
|
| }
|
| js.Expression expression = backend.emitter.constantReference(constant);
|
|
|