summaryrefslogtreecommitdiff
path: root/pp_sort.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-10-15 11:34:41 +0100
committerDavid Mitchell <davem@iabyn.com>2016-02-03 08:59:42 +0000
commitb042e3289b4fb004aeb597fff6026d9df30aee80 (patch)
treef08ecc5a75207c9ecb2dab36b8bd140c269e6091 /pp_sort.c
parent796464187416d7ed9e48c8ce9a8dffeeba5b8240 (diff)
downloadperl-b042e3289b4fb004aeb597fff6026d9df30aee80.tar.gz
do PL_tmps_floor restore in POPBLOCK
Currently every individual POPFOO type does PL_tmps_floor = cx->cx_u.cx_blk.blku_old_tmpsfloor as its last action. Move all these into POPBLOCK instead, which always immediately follows the POPFOO.
Diffstat (limited to 'pp_sort.c')
-rw-r--r--pp_sort.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/pp_sort.c b/pp_sort.c
index 706e2d6475..352be9953f 100644
--- a/pp_sort.c
+++ b/pp_sort.c
@@ -1712,11 +1712,10 @@ PP(pp_sort)
assert(CxTYPE(cx) == CXt_SUB);
POPSUB(cx);
}
- else
+ else {
assert(CxTYPE(cx) == CXt_NULL);
- /* mimic POPSUB */
CX_LEAVE_SCOPE(cx);
- PL_tmps_floor = cx->cx_u.cx_blk.blku_old_tmpsfloor;
+ }
POPBLOCK(cx);
cxstack_ix--;