This commit is contained in:
parent
329fcfff6f
commit
925fd6ce05
1 changed files with 6 additions and 4 deletions
|
@ -92,11 +92,13 @@ func (f *Function) Compile() {
|
|||
f.Assembler.Append(&asm.FunctionEnd{})
|
||||
}
|
||||
|
||||
if f.UniqueName != "core.exit" {
|
||||
switch f.Assembler.Instructions[len(f.Assembler.Instructions)-1].(type) {
|
||||
case *asm.Return:
|
||||
default:
|
||||
f.Assembler.Append(&asm.Return{})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (f *Function) mv(args []ssa.Value, registers []cpu.Register) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue