| Index: pkg/compiler/lib/src/cps_ir/constant_propagation.dart
|
| diff --git a/pkg/compiler/lib/src/cps_ir/constant_propagation.dart b/pkg/compiler/lib/src/cps_ir/constant_propagation.dart
|
| index a6da66be1402f03f61a67e6027f9931f3c076170..975a53180db7b95d9d15cc200b2b5e7cb0901305 100644
|
| --- a/pkg/compiler/lib/src/cps_ir/constant_propagation.dart
|
| +++ b/pkg/compiler/lib/src/cps_ir/constant_propagation.dart
|
| @@ -49,6 +49,7 @@ class ConstantPropagator extends Pass {
|
| }
|
|
|
| void rewriteFieldDefinition(FieldDefinition root) {
|
| + if (!root.hasInitializer) return;
|
| _rewriteExecutableDefinition(root);
|
| }
|
|
|
| @@ -312,7 +313,9 @@ class _ConstPropagationVisitor extends Visitor {
|
| }
|
|
|
| void visitFieldDefinition(FieldDefinition node) {
|
| - setReachable(node.body);
|
| + if (node.hasInitializer) {
|
| + setReachable(node.body);
|
| + }
|
| }
|
|
|
| // Expressions.
|
|
|