Index: pkg/compiler/lib/src/ssa/optimize.dart |
diff --git a/pkg/compiler/lib/src/ssa/optimize.dart b/pkg/compiler/lib/src/ssa/optimize.dart |
index eca5c22108adaf21d691c0ec86b4d8150e3d3e0a..b85a680e99da97fb49b8d6449f4954b0fe22d643 100644 |
--- a/pkg/compiler/lib/src/ssa/optimize.dart |
+++ b/pkg/compiler/lib/src/ssa/optimize.dart |
@@ -517,7 +517,7 @@ class SsaInstructionSimplifier extends HBaseVisitor |
if (!_nativeData.isNativeMember(field) && |
!node.isCallOnInterceptor(_closedWorld)) { |
HInstruction receiver = node.getDartReceiver(_closedWorld); |
- TypeMask type = TypeMaskFactory.inferredTypeForElement( |
+ TypeMask type = TypeMaskFactory.inferredTypeForMember( |
field as Entity, _globalInferenceResults); |
HInstruction load = new HFieldGet(field, receiver, type); |
node.block.addBefore(node, load); |
@@ -994,7 +994,7 @@ class SsaInstructionSimplifier extends HBaseVisitor |
type = TypeMaskFactory.fromNativeBehavior( |
_nativeData.getNativeFieldLoadBehavior(field), _closedWorld); |
} else { |
- type = TypeMaskFactory.inferredTypeForElement( |
+ type = TypeMaskFactory.inferredTypeForMember( |
field as Entity, _globalInferenceResults); |
} |