Index: pkg/compiler/lib/src/cps_ir/finalize.dart |
diff --git a/pkg/compiler/lib/src/cps_ir/finalize.dart b/pkg/compiler/lib/src/cps_ir/finalize.dart |
index 30753316940267341d3d230178482311b9573fe9..1406a58829e55089964079d6f78ddaf9c8749228 100644 |
--- a/pkg/compiler/lib/src/cps_ir/finalize.dart |
+++ b/pkg/compiler/lib/src/cps_ir/finalize.dart |
@@ -72,4 +72,10 @@ class Finalize extends TrampolineRecursiveVisitor implements Pass { |
node..replaceUsesWith(node.object.definition)..destroy(); |
return cps; |
} |
+ |
+ void visitGetStatic(GetStatic node) { |
+ if (node.witness != null) { |
+ node..witness.unlink()..witness = null; |
+ } |
+ } |
} |