mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2026-11-04 16:02:20 +00:00
fix a small bug with return values
This commit is contained in:
2 files changed
+20
-1
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user