summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pp_ctl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 58dc717804..326861c331 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2296,6 +2296,9 @@ S_return_lvalues(pTHX)
bool ref;
const char *what = NULL;
+ if (CxMULTICALL(&cxstack[cxstack_ix]))
+ return 0;
+
POPBLOCK(cx,newpm);
cxstack_ix++; /* preserve cx entry on stack for use by POPSUB */
TAINT_NOT;
@@ -2531,8 +2534,6 @@ PP(pp_return)
* pp_return */
PP(pp_leavesublv)
{
- if (CxMULTICALL(&cxstack[cxstack_ix]))
- return 0;
return S_return_lvalues(aTHX);