Skip to content

Commit 771e4e8

Browse files
committed
regcomp.c: Restore LLVM_FALLTHROUGH to fix -Wc23-extensions
1 parent 5a12f28 commit 771e4e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Support/regcomp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ p_ere_exp(struct parse *p)
538538
break;
539539
case '{': /* okay as ordinary except if digit follows */
540540
REQUIRE(!MORE() || !isdigit((uch)PEEK()), REG_BADRPT);
541-
[[fallthrough]];
541+
LLVM_FALLTHROUGH;
542542
default:
543543
ordinary(p, c);
544544
break;
@@ -734,7 +734,7 @@ p_simp_re(struct parse *p,
734734
break;
735735
case '*':
736736
REQUIRE(starordinary, REG_BADRPT);
737-
[[fallthrough]];
737+
LLVM_FALLTHROUGH;
738738
default:
739739
ordinary(p, (char)c);
740740
break;
@@ -1634,7 +1634,7 @@ findmust(struct parse *p, struct re_guts *g)
16341634
return;
16351635
}
16361636
} while (OP(s) != O_QUEST && OP(s) != O_CH);
1637-
[[fallthrough]];
1637+
LLVM_FALLTHROUGH;
16381638
default: /* things that break a sequence */
16391639
if (newlen > g->mlen) { /* ends one */
16401640
start = newstart;

0 commit comments

Comments
 (0)