Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lval subs: do arg shifting in pp_return
When an lvalue sub does an explicit return, currently pp_return doesn't touch the args stack and instead tail calls S_return_lvalues() which does both the leavesuby stuff (e.g. mortalise args) and the returny stuff (e.g. shift the args down in list context). Move the call to S_return_lvalues() further down in pp_return so that the arg shifty stuff is done in pp_return now (like it is for non-lvalue returns). This will allow us shortly to simply S_return_lvalues.
- Loading branch information