[K/JS] Fix case with boxing/unboxing inside the BlockDecomposerLowering ^KT-63808 Fixed

This commit is contained in:
Artem Kobzar
2023-11-28 11:51:08 +00:00
committed by Space Team
parent 8c95665e27
commit f26b0a5be6
@@ -571,7 +571,7 @@ class BlockDecomposerTransformer(
lastIntrinsicCall = JsIrBuilder.buildCall(saveToTmp.symbol, saveToTmp.type, saveToTmp.typeArguments.filterNotNull()) lastIntrinsicCall = JsIrBuilder.buildCall(saveToTmp.symbol, saveToTmp.type, saveToTmp.typeArguments.filterNotNull())
rootIntrinsicCall = lastIntrinsicCall rootIntrinsicCall = lastIntrinsicCall
} else { } else {
val nextCall = JsIrBuilder.buildCall(saveToTmp.symbol) val nextCall = JsIrBuilder.buildCall(saveToTmp.symbol, saveToTmp.type, saveToTmp.typeArguments.filterNotNull())
lastIntrinsicCall.putValueArgument(0, nextCall) lastIntrinsicCall.putValueArgument(0, nextCall)
lastIntrinsicCall = nextCall lastIntrinsicCall = nextCall
} }