Index: pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart |
diff --git a/pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart b/pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart |
index 47d7898cb424814daa5392b8210ce23f11e55774..90456e9c4193559aec08a6d646af1ca4d23c63ca 100644 |
--- a/pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart |
+++ b/pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart |
@@ -612,7 +612,7 @@ class Builder implements cps_ir.Visitor<Node> { |
node.dependency); |
return continueWithExpression(node.continuation, foreignCode); |
} else { |
- assert(node.continuation == null); |
+ assert(node.continuation.definition.body is cps_ir.Unreachable); |
return new ForeignStatement( |
node.codeTemplate, |
node.type, |