| Index: sdk/lib/_internal/compiler/implementation/ssa/validate.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/ssa/validate.dart (revision 15894)
|
| +++ sdk/lib/_internal/compiler/implementation/ssa/validate.dart (working copy)
|
| @@ -51,8 +51,8 @@
|
| if (block.last is HExit && !block.successors.isEmpty) {
|
| markInvalid("Exit block with successor");
|
| }
|
| - if (block.last is HThrow && !block.successors.isEmpty) {
|
| - markInvalid("Throw block with successor");
|
| + if (block.last is HThrow && block.successors.length > 1) {
|
| + markInvalid("Throw block with more than one successor");
|
| }
|
|
|
| if (block.successors.isEmpty &&
|
|
|