From bb74b0ee4e732d7f05e2d9e9690a7ada65f6039e Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 21 Jul 2009 14:02:25 +0200 Subject: Simplify the code that sets $_ in given() $_ is guaranteed to be lexical here, because the parser did an allocmy when parsing the given() statement. --- pp_ctl.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'pp_ctl.c') diff --git a/pp_ctl.c b/pp_ctl.c index eab96245a8..ebfcf7473d 100644 --- a/pp_ctl.c +++ b/pp_ctl.c @@ -3911,13 +3911,7 @@ PP(pp_entergiven) ENTER; SAVETMPS; - if (PL_op->op_targ == 0) { - SV ** const defsv_p = &GvSV(PL_defgv); - *defsv_p = newSVsv(POPs); - SAVECLEARSV(*defsv_p); - } - else - sv_setsv(PAD_SV(PL_op->op_targ), POPs); + sv_setsv(PAD_SV(PL_op->op_targ), POPs); PUSHBLOCK(cx, CXt_GIVEN, SP); PUSHGIVEN(cx); -- cgit v1.2.1