JS IR: fix offsets in BlockDecompositionLowering

This commit is contained in:
Anton Bannykh
2021-06-24 14:31:05 +03:00
committed by Anton Bannykh
parent 600099585d
commit 9462131014
@@ -346,7 +346,7 @@ class BlockDecomposerTransformer(
val newLoopCondition = newCondition.statements.last() as IrExpression
val newLoopBody = IrBlockImpl(
newCondition.startOffset,
newBody?.startOffset ?: newCondition.startOffset,
newBody?.endOffset ?: newCondition.endOffset,
newBody?.type ?: unitType
).apply {