Fix issue 9664.

R=lrn@google.com
BUG=

Review URL: https://codereview.chromium.org//13621003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20910 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
kasperl@google.com
2013-04-04 09:17:53 +00:00
parent fedee176c6
commit 959dbef11d
2 changed files with 6 additions and 8 deletions
@@ -1982,13 +1982,13 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
conditionExitBlock.remove(conditionExitBlock.last);
HIfBlockInformation info =
new HIfBlockInformation(
wrapExpressionGraph(conditionExpression),
wrapStatementGraph(bodyGraph),
wrapStatementGraph(elseGraph));
wrapExpressionGraph(conditionExpression),
wrapStatementGraph(bodyGraph),
wrapStatementGraph(elseGraph));
conditionBlock.setBlockFlow(info, current);
HIf ifBlock = conditionBlock.last;
ifBlock.blockInformation = conditionBlock.blockFlow;
conditionExitBlock.setBlockFlow(info, current);
HIf ifBlock = conditionExitBlock.last;
ifBlock.blockInformation = conditionExitBlock.blockFlow;
// If the body has any break, attach a synthesized label to the
// if block.
-2
View File
@@ -130,8 +130,6 @@ getter_no_setter_test/01: Fail # http://dartbug.com/5519
isnot_malformed_type_test/01: Fail # http://dartbug.com/5519
not_enough_positional_arguments_test/01: Fail # http://dartbug.com/5519
issue9664_test: Crash # http://dartbug.com/9664
constructor_negative_test: Pass # Wrong reason: the expression 'C()' is valid with class literals.
throw_expr_test: Fail