diff options
author | David Mitchell <davem@iabyn.com> | 2016-09-20 09:45:07 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2016-09-26 09:20:14 +0100 |
commit | 5debce0abfd900416a8fae42c0fced0298d2957c (patch) | |
tree | 6b95439124f94aa2ba546de47aced0b3f8cc2848 /op.c | |
parent | 98fce2a4417fa36585bb48f6ae845bee93cac0fa (diff) | |
download | perl-5debce0abfd900416a8fae42c0fced0298d2957c.tar.gz |
fix builds under USE_PAD_RESET
It had suffered some bitrot.
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. */ |