From: Vincent Pit Date: Sun, 28 Dec 2008 16:10:31 +0000 (+0100) Subject: Also define 'localizing' in pp_helem for the sake of clarity X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=92970b93f52417834e63ece1fd5d664e42639847;p=p5sagit%2Fp5-mst-13.2.git Also define 'localizing' in pp_helem for the sake of clarity --- diff --git a/pp_hot.c b/pp_hot.c index 66c36cb..c52a0d6 100644 --- a/pp_hot.c +++ b/pp_hot.c @@ -1783,12 +1783,13 @@ PP(pp_helem) const U32 defer = PL_op->op_private & OPpLVAL_DEFER; SV *sv; const U32 hash = (SvIsCOW_shared_hash(keysv)) ? SvSHARED_HASH(keysv) : 0; + const bool localizing = PL_op->op_private & OPpLVAL_INTRO; bool preeminent = TRUE; if (SvTYPE(hv) != SVt_PVHV) RETPUSHUNDEF; - if (PL_op->op_private & OPpLVAL_INTRO) { + if (localizing) { MAGIC *mg; HV *stash; @@ -1819,7 +1820,7 @@ PP(pp_helem) PUSHs(lv); RETURN; } - if (PL_op->op_private & OPpLVAL_INTRO) { + if (localizing) { if (HvNAME_get(hv) && isGV(*svp)) save_gp(MUTABLE_GV(*svp), !(PL_op->op_flags & OPf_SPECIAL)); else {