Index: pkg/compiler/lib/src/ssa/graph_builder.dart |
diff --git a/pkg/compiler/lib/src/ssa/graph_builder.dart b/pkg/compiler/lib/src/ssa/graph_builder.dart |
index f3e3ca93f858a2b33062ea33cfa2143aa07c6704..3872abfc102faa4d00780dd2e44b3cb4dcd970eb 100644 |
--- a/pkg/compiler/lib/src/ssa/graph_builder.dart |
+++ b/pkg/compiler/lib/src/ssa/graph_builder.dart |
@@ -9,7 +9,6 @@ import '../common_elements.dart'; |
import '../compiler.dart'; |
import '../deferred_load.dart'; |
import '../diagnostics/diagnostic_listener.dart'; |
-import '../elements/elements.dart'; |
import '../elements/entities.dart' show Entity, Local, MemberEntity; |
import '../elements/jumps.dart'; |
import '../elements/types.dart'; |
@@ -261,7 +260,7 @@ abstract class GraphBuilder { |
HInstruction typeInfo = new HTypeInfoExpression( |
TypeInfoExpressionKind.INSTANCE, |
- (type.element as ClassElement).thisType, |
+ closedWorld.elementEnvironment.getThisType(type.element), |
rtiInputs, |
closedWorld.commonMasks.dynamicType); |
add(typeInfo); |