summaryrefslogtreecommitdiff
path: root/opcode.h
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 /opcode.h
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 'opcode.h')
-rw-r--r--opcode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcode.h b/opcode.h
index 350eed1081..4320304787 100644
--- a/opcode.h
+++ b/opcode.h
@@ -1771,7 +1771,7 @@ EXTCONST U32 PL_opargs[] = {
0x00001104, /* regcmaybe */
0x00001104, /* regcreset */
0x00001304, /* regcomp */
- 0x00000540, /* match */
+ 0x00000500, /* match */
0x00000504, /* qr */
0x00001544, /* subst */
0x00000344, /* substcont */