fix a small bug with return values

This commit is contained in:
Alex Zenla
2025-07-28 20:50:33 -07:00
parent 3dcac2f9e6
commit d0e2f2a05e
2 changed files with 20 additions and 1 deletions

View File

@ -18,6 +18,7 @@ class IrStubOpEmitter(val irDefinition: IrDefinition, val code: CodeBuilder) : I
fun final() {
if (code.lastOp()?.op?.code != Opcode.Return) {
code.emit(Opcode.None)
code.emit(Opcode.Return)
}
}