summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2021-09-15 08:27:22 +0000
committerNicholas Clark <nick@ccl4.org>2021-09-18 08:00:49 +0000
commit7ebc59cd46fc3a16a5785f6a7235a7ee8126aabd (patch)
treebeb4c1cbcd698ad89a8caa14931b7c71822d6cba /op.c
parent5fe711cbde7af4233fdb3a13af2208edc2096624 (diff)
downloadperl-7ebc59cd46fc3a16a5785f6a7235a7ee8126aabd.tar.gz
Prefix "unexpected constant lvalue entersub" with "panic: "
In Sep 1999 commit cd06dffe59d6 added various "internal error" croak()s: initial implementation of lvalue subroutines (slightly fixed version of patch suggested by Ilya Zakharevich, which in turn is based on the one suggested by Tuomas J. Lukka <lukka@iki.fi>) One was "panic: unexpected lvalue entersub entry via type/targ %ld:%ld" Another "Unexpected constant lvalue entersub entry via type/targ %ld:%ld" Prefix the latter with "panic: " to make it consistent.
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index d0a03bbb66..c7ee2c1a4c 100644
--- a/op.c
+++ b/op.c
@@ -4347,7 +4347,7 @@ Perl_op_lvalue_flags(pTHX_ OP *o, I32 type, U32 flags)
kid = kUNOP->op_first;
if (kid->op_type == OP_NULL)
Perl_croak(aTHX_
- "Unexpected constant lvalue entersub "
+ "panic: unexpected constant lvalue entersub "
"entry via type/targ %ld:%" UVuf,
(long)kid->op_type, (UV)kid->op_targ);
if (kid->op_type != OP_GV) {