Index: pkg/compiler/lib/src/tree_ir/optimization/pull_into_initializers.dart |
diff --git a/pkg/compiler/lib/src/tree_ir/optimization/pull_into_initializers.dart b/pkg/compiler/lib/src/tree_ir/optimization/pull_into_initializers.dart |
index 2a679cf2571e98331a27495984dffb57c2b2682d..4719b6ac117b3121f21f1f220230dbcb8a6ad5fa 100644 |
--- a/pkg/compiler/lib/src/tree_ir/optimization/pull_into_initializers.dart |
+++ b/pkg/compiler/lib/src/tree_ir/optimization/pull_into_initializers.dart |
@@ -275,6 +275,17 @@ class BodyRewriter extends ExpressionVisitor<Expression> { |
return node; |
} |
+ Expression visitGetStatic(GetStatic node) { |
+ seenImpure = true; |
+ return node; |
+ } |
+ |
+ Expression visitSetStatic(SetStatic node) { |
+ node.value = visitExpression(node.value); |
+ seenImpure = true; |
+ return node; |
+ } |
+ |
Expression visitCreateBox(CreateBox node) { |
return node; |
} |