Commit 5c9d0646cd for perl
commit 5c9d0646cd2ef7e2d99c99070baab227c838ab36
Author: Richard Leach <rich+perl@hyphen-dash-hyphen.info>
Date: Wed Nov 4 16:39:54 2026 +0000
pp_subst: change DIE to assert, should always have a PMOP
diff --git a/pp_hot.c b/pp_hot.c
index 6714711000..9151ee1f3b 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -5516,8 +5516,7 @@ PP(pp_subst)
#endif
force_it:
- if (!pm || !orig)
- DIE(aTHX_ "panic: pp_subst, pm=%p, orig=%p", pm, orig);
+ assert(pm || orig); /* pm should always be non-NULL here anyway. */
strend = orig + len;
/* We can match twice at each position, once with zero-length,