From: Nikita Popov Date: Mon, 16 Jan 2023 14:19:22 +0000 (+0100) Subject: [Support] Fix incorrect assertion in backref compilation X-Git-Tag: upstream/17.0.6~20798 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f1521b6da09a336c11c400506ea3200bf585210;p=platform%2Fupstream%2Fllvm.git [Support] Fix incorrect assertion in backref compilation These should be == rather than !=. --- diff --git a/llvm/lib/Support/regcomp.c b/llvm/lib/Support/regcomp.c index 24d0112..9d48419 100644 --- a/llvm/lib/Support/regcomp.c +++ b/llvm/lib/Support/regcomp.c @@ -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;