Index: pkg/compiler/lib/src/cps_ir/type_propagation.dart |
diff --git a/pkg/compiler/lib/src/cps_ir/type_propagation.dart b/pkg/compiler/lib/src/cps_ir/type_propagation.dart |
index 20e06b2a49e90d2621e434bd92067e0ab62c0462..ac10ae7414dbb6e7f3c3f5f07376a473dd282629 100644 |
--- a/pkg/compiler/lib/src/cps_ir/type_propagation.dart |
+++ b/pkg/compiler/lib/src/cps_ir/type_propagation.dart |
@@ -1280,7 +1280,7 @@ class TypePropagationVisitor implements Visitor { |
} |
void visitCreateInstance(CreateInstance node) { |
- setValue(node, nonConstant(typeSystem.nonNullExact(node.classElement.declaration))); |
+ setValue(node, nonConstant(typeSystem.nonNullExact(node.classElement))); |
} |
void visitReifyRuntimeType(ReifyRuntimeType node) { |
@@ -1304,17 +1304,6 @@ class TypePropagationVisitor implements Visitor { |
// TODO(asgerf): Expose [Invocation] type. |
setValue(node, nonConstant(typeSystem.nonNullType)); |
} |
- |
- @override |
- visitForeignCode(ForeignCode node) { |
- Continuation continuation = node.continuation.definition; |
- setReachable(continuation); |
- |
- assert(continuation.parameters.length == 1); |
- Parameter returnValue = continuation.parameters.first; |
- |
- setValue(returnValue, nonConstant(node.type)); |
- } |
} |
/// Represents the abstract value of a primitive value at some point in the |