From 7ca9332d2fc6786f96e4bce2029dbd5a19b97183 Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Mon, 18 Sep 2017 14:47:26 +0300 Subject: [PATCH] [lower][debug] KT-20206 non existing source location in loops over range --- .../jetbrains/kotlin/backend/konan/lower/ForLoopsLowering.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/ForLoopsLowering.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/ForLoopsLowering.kt index 8dfef6af5e4..da23922b63b 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/ForLoopsLowering.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/ForLoopsLowering.kt @@ -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 {