diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-11-08 07:07:15 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-11-08 07:07:15 -0800 |
commit | 9d99d451894e04e33976488d9ac9bb6ccb9018d9 (patch) | |
tree | e7dcce285b60b7af59aa1125323e7ce55feff6f8 /regen | |
parent | 383542ae1cd5bd3ea345ac36fdd19216afcf9e87 (diff) | |
download | perl-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/opcodes | 2 |
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| |