| Index: pkg/compiler/lib/src/cps_ir/cps_ir_integrity.dart
|
| diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_integrity.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_integrity.dart
|
| index dedfbadc60474ac8c557021890280d11993abcae..a2959025b8358e2af077f2134e37a00c74a6c348 100644
|
| --- a/pkg/compiler/lib/src/cps_ir/cps_ir_integrity.dart
|
| +++ b/pkg/compiler/lib/src/cps_ir/cps_ir_integrity.dart
|
| @@ -154,6 +154,9 @@ class CheckCpsIntegrity extends TrampolineRecursiveVisitor {
|
| if (inScope[def] == ScopeType.NotInScope) {
|
| error('Referenced out of scope: $def', ref);
|
| }
|
| + if (ref.previous == ref) {
|
| + error('Shared Reference object to $def', ref);
|
| + }
|
| if (ref.previous == null && def.firstRef != ref ||
|
| ref.previous != null && ref.previous.next != ref) {
|
| error('Broken .previous link in reference to $def', def);
|
|
|