[libc-commits] [libc] [libc][regex] Add ERE {m, n} interval quantifiers (PR #236569)
Alex Strelnikov via libc-commits
libc-commits at lists.llvm.org
Tue Nov 17 07:46:03 PST 2026
================
@@ -57,9 +57,14 @@ bool nullable(ExprId id, uint8_t anchor_ctx, const ExprPool &pool) {
nullable(e.bin.right, anchor_ctx, pool);
case ExprKind::Repeat:
return nullable(e.rep.body, anchor_ctx, pool);
- default:
- return e.nullable;
+ case ExprKind::EmptySet:
+ case ExprKind::EmptyStr:
+ case ExprKind::Literal:
+ case ExprKind::ByteSet:
+ case ExprKind::Star:
+ break;
----------------
strel-12 wrote:
Nit: Can we add a `LIBC_ASSERT(false);` here?
https://github.com/llvm/llvm-project/pull/236569
More information about the libc-commits
mailing list