diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-11-08 09:39:25 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-11-08 09:52:06 -0800 |
commit | 7f581e76d55d16c0f0b5f02b898e703e1bc5c8ff (patch) | |
tree | b4b9336e211b7697b0d3a64d410478f1b1f9e623 /opcode.h | |
parent | 9d99d451894e04e33976488d9ac9bb6ccb9018d9 (diff) | |
download | perl-7f581e76d55d16c0f0b5f02b898e703e1bc5c8ff.tar.gz |
Remove OA_DANGEROUS from subst(cont)
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.
pp_subst and pp_substcont only push new mortal scalars or read-only
values on to the stack. Hence they are not OA_DANGEROUS.
Diffstat (limited to 'opcode.h')
-rw-r--r-- | opcode.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1773,8 +1773,8 @@ EXTCONST U32 PL_opargs[] = { 0x00001304, /* regcomp */ 0x00000500, /* match */ 0x00000504, /* qr */ - 0x00001544, /* subst */ - 0x00000344, /* substcont */ + 0x00001504, /* subst */ + 0x00000304, /* substcont */ 0x00001804, /* trans */ 0x00001804, /* transr */ 0x00000004, /* sassign */ |