Index: pkg/compiler/lib/src/ssa/builder_kernel.dart |
diff --git a/pkg/compiler/lib/src/ssa/builder_kernel.dart b/pkg/compiler/lib/src/ssa/builder_kernel.dart |
index f3e651b44c269fbbf63bd0f6413df449807f18b9..4c0808cc5eb4e6ad4a237db273f586986441e559 100644 |
--- a/pkg/compiler/lib/src/ssa/builder_kernel.dart |
+++ b/pkg/compiler/lib/src/ssa/builder_kernel.dart |
@@ -977,7 +977,7 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder { |
TypeMask mapType = new TypeMask.nonNullSubtype( |
astAdapter.getElement(astAdapter.mapLiteralClass), closedWorld); |
TypeMask returnTypeMask = TypeMaskFactory.inferredReturnTypeForElement( |
- astAdapter.getElement(constructor), compiler); |
+ astAdapter.getElement(constructor), globalInferenceResults); |
TypeMask instructionType = |
mapType.intersection(returnTypeMask, closedWorld); |