Index: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart b/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart |
index faf20a4edfad4e97abdd2862022963148decde6b..0bd62e2763e5e9cdb45ae52fc1b3f0ecc768ce1c 100644 |
--- a/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart |
+++ b/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart |
@@ -1404,6 +1404,9 @@ class InternalSimpleTypesInferrer |
TypeMask handleIntrisifiedSelector(Selector selector, |
ArgumentsTypes arguments) { |
+ // If [:compiler.intClass:] has not been resolved, there are no int values |
+ // in the program. |
+ if (!compiler.intClass.isResolved) return null; |
TypeMask intType = types.intType; |
if (selector.mask != intType) return null; |
if (!selector.isCall() && !selector.isOperator()) return null; |
@@ -2220,7 +2223,7 @@ class SimpleTypeInferrerVisitor<T> |
// If the receiver of the call is a local, we may know more about |
// its type by refining it with the potential targets of the |
- // calls. |
+ // calls. |
if (node.asSend() != null) { |
Node receiver = node.asSend().receiver; |
if (receiver != null) { |