It is better defensive coding to restore as soon as possible, rather
than deferring it.
SvREFCNT_dec_NN(final);
SvREFCNT_dec_NN(result_string);
+ if (save_fold) {
+ RExC_flags |= RXf_PMf_FOLD;
+ }
+
if (!node)
FAIL2("panic: regclass returned failure to handle_sets, flags=%#" UVxf,
PTR2UV(flagp));
|= ANYOFL_SHARED_UTF8_LOCALE_fold_HAS_MATCHES_nonfold_REQD;
}
- if (save_fold) {
- RExC_flags |= RXf_PMf_FOLD;
- }
-
nextchar(pRExC_state);
Set_Node_Length(REGNODE_p(node), RExC_parse - oregcomp_parse + 1); /* MJD */
return node;