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

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

Issue 11411119: Clean up warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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/builder.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
index 1269993a8ea9198f8fb55944c242fb40eea71f9a..95a2b8fc7b0b37b1a373b3cf0c3084c8fef5bffe 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
@@ -1996,7 +1996,8 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
wrapStatementGraph(elseGraph));
conditionBlock.setBlockFlow(info, current);
- conditionBlock.last.blockInformation = conditionBlock.blockFlow;
+ HIf ifBlock = conditionBlock.last;
+ ifBlock.blockInformation = conditionBlock.blockFlow;
// If the body has any break, attach a synthesized label to the
// if block.
@@ -3492,7 +3493,8 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
visitNewExpression(NewExpression node) {
Element element = elements[node.send];
if (!Elements.isErroneousElement(element)) {
- element = element.redirectionTarget;
+ FunctionElement function = element;
+ element = function.redirectionTarget;
}
if (Elements.isErroneousElement(element)) {
ErroneousElement error = element;

Powered by Google App Engine
This is Rietveld 408576698