Index: pkg/compiler/lib/src/ssa/ssa_branch_builder.dart |
diff --git a/pkg/compiler/lib/src/ssa/ssa_branch_builder.dart b/pkg/compiler/lib/src/ssa/ssa_branch_builder.dart |
index 7493d308228359a99e812357a4d34505bdaa8de7..1c4e690ea7494a826dc9141d065cf9d735a48d3d 100644 |
--- a/pkg/compiler/lib/src/ssa/ssa_branch_builder.dart |
+++ b/pkg/compiler/lib/src/ssa/ssa_branch_builder.dart |
@@ -2,7 +2,7 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-import '../compiler.dart'; |
+import '../common.dart'; |
import '../io/source_information.dart'; |
import '../tree/tree.dart' as ast; |
@@ -22,14 +22,14 @@ class SsaBranch { |
class SsaBranchBuilder { |
final GraphBuilder builder; |
- final Compiler compiler; |
final ast.Node diagnosticNode; |
- SsaBranchBuilder(this.builder, this.compiler, [this.diagnosticNode]); |
+ SsaBranchBuilder(this.builder, [this.diagnosticNode]); |
void checkNotAborted() { |
if (builder.isAborted()) { |
- compiler.unimplemented(diagnosticNode, "aborted control flow"); |
+ throw new SpannableAssertionFailure( |
+ diagnosticNode, "aborted control flow"); |
} |
} |