summaryrefslogtreecommitdiff
path: root/pp_sort.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-10-15 08:52:18 +0100
committerDavid Mitchell <davem@iabyn.com>2016-02-03 08:59:42 +0000
commit72c5b62dfd0d91a02743d4b2fe0d8b8d04488753 (patch)
treeab70f9c19e0a6573fa52c93bc9d0874882ae2849 /pp_sort.c
parentdd748f4511ead9174b04b875630d7947834c9ed1 (diff)
downloadperl-72c5b62dfd0d91a02743d4b2fe0d8b8d04488753.tar.gz
pp_sort: add missing CX_LEAVE_SCOPE()
The branch that does POPSUB has an implicit CX_LEAVE_SCOPE; the other branch didn't; do add one for consistency. It's fairly harmless, as pp_sort shortly afterwards does a LEAVE() anyway. Also add an assertion to POPBLOCK that the save stack has been popped; this is how I discovered the sort issue in the first place.
Diffstat (limited to 'pp_sort.c')
-rw-r--r--pp_sort.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pp_sort.c b/pp_sort.c
index 47d4a064a2..5cab1292da 100644
--- a/pp_sort.c
+++ b/pp_sort.c
@@ -1718,6 +1718,7 @@ PP(pp_sort)
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);