Index: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (revision 15009) |
+++ sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (working copy) |
@@ -831,7 +831,7 @@ |
bool visitLoopInfo(HLoopBlockInformation info) { |
HExpressionInformation condition = info.condition; |
- bool isConditionExpression = condition == null || isJSCondition(condition); |
+ bool isConditionExpression = isJSCondition(condition); |
js.Loop loop; |
@@ -962,9 +962,7 @@ |
if (info.updates != null) { |
generateStatements(info.updates); |
} |
- if (condition == null) { |
- push(newLiteralBool(false)); |
- } else if (isConditionExpression) { |
+ if (isConditionExpression) { |
push(generateExpression(condition)); |
} else { |
generateStatements(condition); |