Fixed incorrect number of history entries
This commit is contained in:
@ -1,6 +1,13 @@
|
||||
package register
|
||||
|
||||
func (f *Machine) Return() {
|
||||
if f.Assembler.CanSkipReturn() {
|
||||
return
|
||||
}
|
||||
|
||||
f.Assembler.Return()
|
||||
scope := f.CurrentScope()
|
||||
scope.Reserved = 0
|
||||
scope.Used = 0
|
||||
f.postInstruction()
|
||||
}
|
||||
|
Reference in New Issue
Block a user