IntRange iteration calls correct methods on IntRange class

This commit is contained in:
Dmitry Jemerov
2011-10-19 20:29:55 +02:00
parent bfbc7ad601
commit c26ab4b472
4 changed files with 20 additions and 5 deletions
@@ -429,9 +429,9 @@ public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> {
gen(expression.getLoopRange(), loopRangeType);
v.dup();
v.invokevirtual("jet/IntRange", "getStartValue", "()I");
v.invokevirtual("jet/IntRange", "getStart", "()I");
v.store(lookupLocal(parameterDescriptor), Type.INT_TYPE);
v.invokevirtual("jet/IntRange", "getEndValue", "()I");
v.invokevirtual("jet/IntRange", "getEnd", "()I");
v.store(myEndVar, Type.INT_TYPE);
}
}