| Index: lib/compiler/implementation/ssa/optimize.dart
|
| diff --git a/lib/compiler/implementation/ssa/optimize.dart b/lib/compiler/implementation/ssa/optimize.dart
|
| index ac3e59952ad323f9cae5a2cd468ab5c34c056b7a..14e5cb6b890b606721d049299fd7ec0a737c397f 100644
|
| --- a/lib/compiler/implementation/ssa/optimize.dart
|
| +++ b/lib/compiler/implementation/ssa/optimize.dart
|
| @@ -203,7 +203,7 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase {
|
| // Try to recognize the length interceptor with input [:new List(int):].
|
| if (node.isLengthGetter() && node.inputs[1] is HInvokeStatic) {
|
| HInvokeStatic call = node.inputs[1];
|
| - Element element = call.inputs[0].element;
|
| + Element element = call.target.element;
|
| if (element.isConstructor() &&
|
| element.enclosingElement.declaration ==
|
| compiler.listClass.defaultClass.element) {
|
|
|