Skip to content

Commit 584c4aa

Browse files
committed
Fix frugal ** quantifier compilation bug.
1 parent 1595bd4 commit 584c4aa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/vm/moar/QAST/QASTRegexCompilerMAST.nqp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ class QAST::MASTRegexCompiler {
554554
my $needmark := $needrep || $backtrack eq 'r';
555555
my $rep := %*REG<rep>;
556556
my $pos := %*REG<pos>;
557-
my $ireg := fresh_i();
557+
my $ireg := $*REGALLOC.fresh_i(:new); # Must be regex-unique
558558

559559
if $backtrack eq 'f' {
560560
my $seplabel := label($prefix ~ '_sep');
@@ -621,7 +621,6 @@ class QAST::MASTRegexCompiler {
621621
release($minreg, $MVM_reg_int64);
622622
}
623623
}
624-
release($ireg, $MVM_reg_int64);
625624
@ins
626625
}
627626

0 commit comments

Comments
 (0)