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

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

Issue 14071003: Fix first part on liveness analysis of bug https://code.google.com/p/dart/issues/detail?id=9687: a … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 months 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/codegen.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (revision 21192)
+++ sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (working copy)
@@ -337,11 +337,11 @@
// Register return types to the backend.
graph.exit.predecessors.forEach((HBasicBlock block) {
HInstruction last = block.last;
- assert(last is HGoto || last is HReturn);
+ assert(last is HGoto || last is HReturn || last is HThrow);
if (last is HReturn) {
backend.registerReturnType(
work.element, last.inputs[0].instructionType);
- } else {
+ } else if (last is HGoto) {
backend.registerReturnType(work.element, HType.NULL);
}
});

Powered by Google App Engine
This is Rietveld 408576698