summaryrefslogtreecommitdiff
path: root/regen
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-11-08 07:07:15 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-11-08 07:07:15 -0800
commit9d99d451894e04e33976488d9ac9bb6ccb9018d9 (patch)
treee7dcce285b60b7af59aa1125323e7ce55feff6f8 /regen
parent383542ae1cd5bd3ea345ac36fdd19216afcf9e87 (diff)
downloadperl-9d99d451894e04e33976488d9ac9bb6ccb9018d9.tar.gz
Remove OA_DANGEROUS from match
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_match pushes new mortals on to the stack in list context (or a read-only boolean; read-only values don’t matter), so they can’t occur elsewhere. Hence it is not OA_DANGEROUS.
Diffstat (limited to 'regen')
-rw-r--r--regen/opcodes2
1 files changed, 1 insertions, 1 deletions
diff --git a/regen/opcodes b/regen/opcodes
index be3bffe5f3..0f2c5f2cbc 100644
--- a/regen/opcodes
+++ b/regen/opcodes
@@ -84,7 +84,7 @@ rcatline append I/O operator ck_null t$
regcmaybe regexp internal guard ck_fun s1 S
regcreset regexp internal reset ck_fun s1 S
regcomp regexp compilation ck_null s| S
-match pattern match (m//) ck_match d/
+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|