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

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

Issue 190763013: Detect total switches to prevent type pollution by default cases. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address review comments Created 6 years, 9 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/tracer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/tracer.dart b/sdk/lib/_internal/compiler/implementation/ssa/tracer.dart
index 37731ba36fd9bd7429291f6ceb9226e910ff285a..c8d9e45aea5e3a8e0ca9b68b8ac9dea8929625ec 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/tracer.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/tracer.dart
@@ -466,7 +466,7 @@ class HInstructionStringifier implements HVisitor<String> {
buf.write(", ");
}
buf.write("default: B");
- buf.write(node.block.successors.last.id);
+ buf.write(node.defaultTarget.id);
return buf.toString();
}

Powered by Google App Engine
This is Rietveld 408576698