Skip to content

Commit

Permalink
[Support] Fix incorrect assertion in backref compilation
Browse files Browse the repository at this point in the history
These should be == rather than !=.
  • Loading branch information
nikic committed Jan 16, 2023
1 parent bc367dd commit 9f1521b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Support/regcomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ p_ere_exp(struct parse *p)
assert(backrefnum <= p->g->nsub);
EMIT(OBACK_, backrefnum);
assert(p->pbegin[backrefnum] != 0);
assert(OP(p->strip[p->pbegin[backrefnum]]) != OLPAREN);
assert(OP(p->strip[p->pend[backrefnum]]) != ORPAREN);
assert(OP(p->strip[p->pbegin[backrefnum]]) == OLPAREN);
assert(OP(p->strip[p->pend[backrefnum]]) == ORPAREN);
(void) dupl(p, p->pbegin[backrefnum]+1, p->pend[backrefnum]);
EMIT(O_BACK, backrefnum);
p->g->backrefs = 1;
Expand Down

0 comments on commit 9f1521b

Please sign in to comment.