summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2017-07-14 11:50:16 +0100
committerDavid Mitchell <davem@iabyn.com>2017-07-27 11:30:23 +0100
commita247dbb235b6ada82425a663c4ebd4f426e4947f (patch)
treed7f620479d45f39151935e54a2419eaa7b03afb0 /pp.c
parent5febd2ff83ad8541c2fd1f43266e321d057ef865 (diff)
downloadperl-a247dbb235b6ada82425a663c4ebd4f426e4947f.tar.gz
S_check_for_bool_cxt(): avoid OPpTARGET_MY + bool
Where an op allows the OA_TARGLEX optimisation (which eliminates the assign op in '$lex = foo' and just sets the targ directly - which may be a padtmp or $lex - the op doesn't care), disallow setting a boolean context flag on that op. Because if the op does something like if (OPpTRUEBOOL) SETs(cond ? &PL_sv_yes : &PL_sv_no) skipping assigning to TARG, then $lex won't get set.
Diffstat (limited to 'pp.c')
0 files changed, 0 insertions, 0 deletions