Index: pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart |
diff --git a/pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart b/pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart |
index 5b5f16864322b713cdc886a056a105510e47bf00..8d5c2fbe49f6e1f1d18074e5001c921254f5b5e7 100644 |
--- a/pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart |
+++ b/pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart |
@@ -667,6 +667,13 @@ class Builder implements cps_ir.Visitor<Node> { |
return new GetStatic(node.element, node.sourceInformation); |
} |
+ Statement visitGetLazyStatic(cps_ir.GetLazyStatic node) { |
+ // In the tree IR, GetStatic handles lazy fields because tree |
+ // expressions are allowed to have side effects. |
+ GetStatic value = new GetStatic(node.element, node.sourceInformation); |
+ return continueWithExpression(node.continuation, value); |
+ } |
+ |
Statement visitSetStatic(cps_ir.SetStatic node) { |
SetStatic setStatic = new SetStatic( |
node.element, |