summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2016-09-20 09:45:07 +0100
committerDavid Mitchell <davem@iabyn.com>2016-09-26 09:20:14 +0100
commit5debce0abfd900416a8fae42c0fced0298d2957c (patch)
tree6b95439124f94aa2ba546de47aced0b3f8cc2848 /op.c
parent98fce2a4417fa36585bb48f6ae845bee93cac0fa (diff)
downloadperl-5debce0abfd900416a8fae42c0fced0298d2957c.tar.gz
fix builds under USE_PAD_RESET
It had suffered some bitrot.
Diffstat (limited to 'op.c')
-rw-r--r--op.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/op.c b/op.c
index 66cac9b797..3e44be81f6 100644
--- a/op.c
+++ b/op.c
@@ -5744,7 +5744,13 @@ Perl_pmruntime(pTHX_ OP *o, OP *expr, OP *repl, bool isreg, I32 floor)
SSize_t i = 0;
assert(PadnamelistMAXNAMED(PL_comppad_name) == 0);
while (++i <= AvFILLp(PL_comppad)) {
+# ifdef USE_PAD_RESET
+ /* under USE_PAD_RESET, pad swipe replaces a swiped
+ * folded constant with a fresh padtmp */
+ assert(!PL_curpad[i] || SvPADTMP(PL_curpad[i]));
+# else
assert(!PL_curpad[i]);
+# endif
}
#endif
/* But we know that one op is using this CV's slab. */