summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 9eb281451a..c442d0bf7e 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -5045,7 +5045,9 @@ PP(pp_break)
if (cxix < cxstack_ix)
dounwind(cxix);
- /* RETURNOP calls PUTBACK which restores the old old sp */
+ /* Restore the sp at the time we entered the given block */
+ TOPBLOCK(cx);
+
return cx->blk_givwhen.leave_op;
}