Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(880)

Unified Diff: lib/compiler/implementation/ssa/optimize.dart

Issue 11052011: Fix some warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)) {

Powered by Google App Engine
This is Rietveld 408576698