summaryrefslogtreecommitdiff
path: root/opcode.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-02-20 09:21:53 +0000
committerNicholas Clark <nick@ccl4.org>2008-02-20 09:21:53 +0000
commit1518d620d80f21c46a5f3757b2ebf28b92c1d602 (patch)
treea0f39cad79b74c01021387c56a334f5188a283c8 /opcode.pl
parentf30de7493b87cd1270b4840a21a0c5c0f76598a7 (diff)
downloadperl-1518d620d80f21c46a5f3757b2ebf28b92c1d602.tar.gz
Setting the f flag on length causes the op to be constant folded.
p4raw-id: //depot/perl@33337
Diffstat (limited to 'opcode.pl')
-rwxr-xr-xopcode.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcode.pl b/opcode.pl
index bcbcbb0bdc..b59af50cc7 100755
--- a/opcode.pl
+++ b/opcode.pl
@@ -760,7 +760,7 @@ abs abs ck_fun fsTu% S?
# String stuff.
-length length ck_lengthconst isTu% S?
+length length ck_lengthconst ifsTu% S?
substr substr ck_substr st@ S S S? S?
vec vec ck_fun ist@ S S S