Drew Hamilton
03/08/2020, 11:48 AMInstructionAdapter.ireturn()
function. How do I write the JVM IRETURN
(integer return) bytecode into my generated code?raulraja
03/08/2020, 11:59 AMtransform
api to mutate the IR tree you may intercept any expression and replace it with another such as an IrReturnImpl org.jetbrains.kotlin.ir.expressions.impl.IrReturnImplDrew Hamilton
03/08/2020, 1:22 PMIRETURN
bytecode—not IrReturn or anything else with the IR tree! Editing original comment to clarify.raulraja
03/08/2020, 1:36 PMDrew Hamilton
03/08/2020, 1:41 PMinstructionAdapter.areturn(Type.INT_TYPE)
shikasd
03/09/2020, 11:53 AMkotlinx-serialization
, I highly recommend you to take a look if you haven't already 🙂