Subject: | newUNOP(OP_CUSTOM, ...) fails an assertion on debugging Perls |
I imagine the patch below fixes this, but the module won't build on my Mac box for unrelated reasons, so I haven't been able to test it.
diff --git a/lib/Hash/SharedMem.xs b/lib/Hash/SharedMem.xs
index 051b3a4..38d8e04 100644
--- a/lib/Hash/SharedMem.xs
+++ b/lib/Hash/SharedMem.xs
@@ -2095,7 +2095,8 @@ static OP *THX_ck_entersub_args_hsm(pTHX_ OP *entersubop,
pushop->op_sibling = cvop;
lastargop->op_sibling = NULL;
op_free(entersubop);
- newop = newUNOP(OP_CUSTOM, 0, firstargop);
+ newop = newUNOP(OP_NULL, 0, firstargop);
+ newop->op_type = OP_CUSTOM;
newop->op_ppaddr = DPTR2FPTR(Perl_ppaddr_t, CvXSUBANY(cv).any_ptr);
return newop;
}