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 {