summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2016-08-27 14:28:24 +0100
committerDavid Mitchell <davem@iabyn.com>2016-09-05 12:00:05 +0100
commit68d1ee858a9172f8fd376b2e4aca1cf5b1ecfaeb (patch)
tree41a56679c674f565c687819d23fe0bf5915a171e /op.c
parent03a1fa1ec8c5ab3929f9d04fe91f45260062eb0e (diff)
downloadperl-68d1ee858a9172f8fd376b2e4aca1cf5b1ecfaeb.tar.gz
assert op not freed in finalize_op() and rpeep()
This should never happen.
Diffstat (limited to 'op.c')
-rw-r--r--op.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/op.c b/op.c
index cedc5e80b4..306395afa6 100644
--- a/op.c
+++ b/op.c
@@ -2501,6 +2501,7 @@ S_finalize_op(pTHX_ OP* o)
{
PERL_ARGS_ASSERT_FINALIZE_OP;
+ assert(o->op_type != OP_FREED);
switch (o->op_type) {
case OP_NEXTSTATE:
@@ -13297,6 +13298,9 @@ Perl_rpeep(pTHX_ OP *o)
if (!o || o->op_opt)
return;
+
+ assert(o->op_type != OP_FREED);
+
ENTER;
SAVEOP();
SAVEVPTR(PL_curcop);