Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/validate.dart

Issue 11497009: Revive throw as an expression but not for rethrow. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 &&

Powered by Google App Engine
This is Rietveld 408576698