[lower][debug] KT-20206 non existing source location in loops over range

This commit is contained in:
Vasily Levchenko
2017-09-18 14:47:26 +03:00
committed by Vasily Levchenko
parent 3416c53634
commit 7ca9332d2f
@@ -498,7 +498,7 @@ private class ForLoopsTransformer(val context: Context) : IrElementTransformerVo
return super.visitWhileLoop(loop)
}
with(context.createIrBuilder(scopeOwnerSymbol)) {
with(context.createIrBuilder(scopeOwnerSymbol, loop.startOffset, loop.endOffset)) {
// Transform accesses to the old iterator (see visitVariable method). Store loopVariable in loopInfo.
// Replace not transparent containers with transparent ones (IrComposite)
val newBody = loop.body?.transform(this@ForLoopsTransformer, null)?.let {