| Index: lib/compiler/implementation/ssa/validate.dart
|
| diff --git a/lib/compiler/implementation/ssa/validate.dart b/lib/compiler/implementation/ssa/validate.dart
|
| index c247235b5f8eea657975951467de0677142ac86a..bfddd11e6fe28c7279fc3f9586fa43eecd537aaa 100644
|
| --- a/lib/compiler/implementation/ssa/validate.dart
|
| +++ b/lib/compiler/implementation/ssa/validate.dart
|
| @@ -39,6 +39,9 @@ class HValidator extends HInstructionVisitor {
|
| if (block.last is HGoto && block.successors.length != 1) {
|
| markInvalid("Goto node without one successor");
|
| }
|
| + if (block.last is HJump && block.successors.length != 1) {
|
| + markInvalid("Break or continue node without one successor");
|
| + }
|
| if (block.last is HReturn &&
|
| (block.successors.length != 1 || !block.successors[0].isExitBlock())) {
|
| markInvalid("Return node with > 1 succesor or not going to exit-block");
|
|
|