Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions pp_ctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3310,14 +3310,6 @@ PP(pp_goto)
else if (CxMULTICALL(cx))
DIE(aTHX_ "Can't goto subroutine from a sort sub (or similar callback)");

/* Check for defer { goto &...; } */
for(ix = cxstack_ix; ix > cxix; ix--) {
if(CxTYPE(&cxstack[ix]) == CXt_DEFER)
/* diag_listed_as: Can't "%s" out of a "defer" block */
croak("Can't \"%s\" out of a \"%s\" block",
"goto", S_defer_blockname(&cxstack[ix]));
}

/* First do some returnish stuff. */

SvREFCNT_inc_simple_void(cv); /* avoid premature free during unwind */
Expand Down
Loading