Index: pkg/compiler/lib/src/ssa/rasta_ssa_builder_task.dart |
diff --git a/pkg/compiler/lib/src/ssa/rasta_ssa_builder_task.dart b/pkg/compiler/lib/src/ssa/rasta_ssa_builder_task.dart |
index fb7e173be47164c9ffc6bfcd32aef9c0053908f6..503f1877d7a1e1501fe53285dfe0cd33f30c7844 100644 |
--- a/pkg/compiler/lib/src/ssa/rasta_ssa_builder_task.dart |
+++ b/pkg/compiler/lib/src/ssa/rasta_ssa_builder_task.dart |
@@ -26,7 +26,7 @@ class RastaSsaBuilder extends SsaAstBuilderBase { |
HGraph build(ElementCodegenWorkItem work, ClosedWorld closedWorld) { |
return task.measure(() { |
- if (handleConstantField(work, closedWorld)) { |
+ if (handleConstantField(work.element, work.registry, closedWorld)) { |
// No code is generated for `work.element`. |
return null; |
} |