This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove OA_DANGEROUS from non-integer postdec/inc
authorFather Chrysostomos <sprout@cpan.org>
Sat, 8 Nov 2014 18:41:23 +0000 (10:41 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 8 Nov 2014 19:45:02 +0000 (11:45 -0800)
OA_DANGEROUS indicates that temporary copies may need to be made in
list assignment, to handle things like:

($a, $b) = ($b, $a);

In other words, an op type is flagged with OA_DANGEROUS if its return
values could occur elsewhere on the stack.

While pp_postinc may return a lexical scalar, that only happens when
the OPpTARGET_MY optimisation is happening; and aassign_common_vars in
op.c checks specifically for that.

Otherwise, it only returns a mortal or target, so it is not
OA_DANGEROUS.


No differences found