| Index: dart/lib/compiler/implementation/ssa/builder.dart
|
| diff --git a/dart/lib/compiler/implementation/ssa/builder.dart b/dart/lib/compiler/implementation/ssa/builder.dart
|
| index 3c14e96c96e250dbd0b8e58796aefaf20127b774..c55d9df5cad17401df3064ae3a325d98411fd106 100644
|
| --- a/dart/lib/compiler/implementation/ssa/builder.dart
|
| +++ b/dart/lib/compiler/implementation/ssa/builder.dart
|
| @@ -970,10 +970,8 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
|
| if (constructor is SynthesizedConstructorElement) return null;
|
| FunctionExpression node = constructor.parseNode(compiler);
|
| // If we know the body doesn't have any code, we don't generate it.
|
| - if (node.body.asBlock() != null) {
|
| - NodeList statements = node.body.asBlock().statements;
|
| - if (statements.isEmpty) return null;
|
| - }
|
| + if (!node.hasBody()) return null;
|
| + if (node.hasEmptyBody()) return null;
|
| ClassElement classElement = constructor.getEnclosingClass();
|
| ConstructorBodyElement bodyElement;
|
| for (Link<Element> backendMembers = classElement.backendMembers;
|
|
|