diff options
author | David Mitchell <davem@iabyn.com> | 2015-10-10 22:23:19 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2016-02-03 08:59:40 +0000 |
commit | f7d0774bf175c0069a732fe3cb11e2aa9d9f6956 (patch) | |
tree | 4b39bcf7732c3810d93f5ef7c636ffa5d14f05ac /pp_sort.c | |
parent | 61d3b95a3e3c5316d83f1b0882dcab3dc36addc0 (diff) | |
download | perl-f7d0774bf175c0069a732fe3cb11e2aa9d9f6956.tar.gz |
POPBLOCK: don't set newsp and gimme
This macro used to set these two vars as a side-effect.
Since we now usually access those values before we call POPBLOCK,
it's wasteful to set them again.
Diffstat (limited to 'pp_sort.c')
-rw-r--r-- | pp_sort.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1640,7 +1640,6 @@ PP(pp_sort) SV **start; if (PL_sortcop) { PERL_CONTEXT *cx; - SV** newsp; const bool oldcatch = CATCH_GET; I32 old_savestack_ix = PL_savestack_ix; @@ -1720,7 +1719,7 @@ PP(pp_sort) PL_tmps_floor = cx->cx_u.cx_blk.blku_old_tmpsfloor; POPBLOCK(cx,PL_curpm); - PL_stack_sp = newsp; + PL_stack_sp = PL_stack_base + cx->blk_oldsp; POPSTACK; CATCH_SET(oldcatch); } |