summaryrefslogtreecommitdiff
path: root/pp_sort.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-10-10 22:23:19 +0100
committerDavid Mitchell <davem@iabyn.com>2016-02-03 08:59:40 +0000
commitf7d0774bf175c0069a732fe3cb11e2aa9d9f6956 (patch)
tree4b39bcf7732c3810d93f5ef7c636ffa5d14f05ac /pp_sort.c
parent61d3b95a3e3c5316d83f1b0882dcab3dc36addc0 (diff)
downloadperl-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pp_sort.c b/pp_sort.c
index bfd7fa2348..fbbf84811e 100644
--- a/pp_sort.c
+++ b/pp_sort.c
@@ -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);
}