| Index: lib/compiler/implementation/ssa/optimize.dart
|
| diff --git a/lib/compiler/implementation/ssa/optimize.dart b/lib/compiler/implementation/ssa/optimize.dart
|
| index 3bae34d7eef590950bdf7eceb3d81b061a00b920..d5bfab58bfdb663cbb7d7bc8db36bd224e3e0a14 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 == compiler.listClass.defaultClass.element) {
|
| if (call.inputs.length == 2 && call.inputs[1].isInteger(types)) {
|
|
|