This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_leaveloop: use SVs_PADTMP|SVs_TEMP
authorDavid Mitchell <davem@iabyn.com>
Wed, 26 Aug 2015 10:34:59 +0000 (11:34 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Feb 2016 08:59:38 +0000 (08:59 +0000)
commit5b83809469bb55d60f593e77332f17f5a6472a1d
tree089f5eaf9a353630a23b82a941f37aacd6135884
parente5ce4d8a834b79cee1a08780a9440df2a1c47b86
pp_leaveloop: use SVs_PADTMP|SVs_TEMP

When calling leave_common(), most callers specify the "safe" return SVs
that don't need copying as being those with SVs_PADTMP or SVs_TEMP
set (leaveeval is a correct exception to this this).

pp_leaveloop() specified no flags, meaning that it always copies. This
appears to be just be an oversight rather than being for any good reason.
pp_ctl.c