summaryrefslogtreecommitdiff
path: root/regen
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-11-08 09:39:25 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-11-08 09:52:06 -0800
commit7f581e76d55d16c0f0b5f02b898e703e1bc5c8ff (patch)
treeb4b9336e211b7697b0d3a64d410478f1b1f9e623 /regen
parent9d99d451894e04e33976488d9ac9bb6ccb9018d9 (diff)
downloadperl-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 'regen')
-rw-r--r--regen/opcodes4
1 files changed, 2 insertions, 2 deletions
diff --git a/regen/opcodes b/regen/opcodes
index 0f2c5f2cbc..f2110cc5f2 100644
--- a/regen/opcodes
+++ b/regen/opcodes
@@ -86,8 +86,8 @@ regcreset regexp internal reset ck_fun s1 S
regcomp regexp compilation ck_null s| S
match pattern match (m//) ck_match /
qr pattern quote (qr//) ck_match s/
-subst substitution (s///) ck_match dis/ S
-substcont substitution iterator ck_null dis|
+subst substitution (s///) ck_match is/ S
+substcont substitution iterator ck_null is|
trans transliteration (tr///) ck_match is" S
# y///r
transr transliteration (tr///) ck_match is" S