summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/regcomp.c
diff options
context:
space:
mode:
authorNathan Huckleberry <nhuck@google.com>2019-08-21 17:07:43 +0000
committerNathan Huckleberry <nhuck@google.com>2019-08-21 17:07:43 +0000
commit01a413695c980613c8d737e7bba79131a6adc8a5 (patch)
tree1ae23c81a7b24a1e5a06227b9ea5738ebd13448a /llvm/lib/Support/regcomp.c
parent7425179fee9b4ed1ff6d366ee06487f05a1c0ab3 (diff)
downloadbcm5719-llvm-01a413695c980613c8d737e7bba79131a6adc8a5.tar.gz
bcm5719-llvm-01a413695c980613c8d737e7bba79131a6adc8a5.zip
Fix -Wimplicit-fallthrough warnings in regcomp.c
Summary: Since clang does not support comment style fallthrough annotations these should be switched. Reviewers: aaron.ballman, nickdesaulniers, xbolva00 Reviewed By: aaron.ballman, nickdesaulniers, xbolva00 Subscribers: xbolva00, nickdesaulniers, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D66487 llvm-svn: 369549
Diffstat (limited to 'llvm/lib/Support/regcomp.c')
-rw-r--r--llvm/lib/Support/regcomp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Support/regcomp.c b/llvm/lib/Support/regcomp.c
index ca283869be9..ee2a1d87a26 100644
--- a/llvm/lib/Support/regcomp.c
+++ b/llvm/lib/Support/regcomp.c
@@ -48,6 +48,7 @@
#include "regex2.h"
#include "llvm/Config/config.h"
+#include "llvm/Support/Compiler.h"
/* character-class table */
static struct cclass {
@@ -537,7 +538,7 @@ p_ere_exp(struct parse *p)
break;
case '{': /* okay as ordinary except if digit follows */
REQUIRE(!MORE() || !isdigit((uch)PEEK()), REG_BADRPT);
- /* fall through */
+ LLVM_FALLTHROUGH;
default:
ordinary(p, c);
break;
@@ -733,7 +734,7 @@ p_simp_re(struct parse *p,
break;
case '*':
REQUIRE(starordinary, REG_BADRPT);
- /* fall through */
+ LLVM_FALLTHROUGH;
default:
ordinary(p, (char)c);
break;
@@ -1635,7 +1636,7 @@ findmust(struct parse *p, struct re_guts *g)
return;
}
} while (OP(s) != O_QUEST && OP(s) != O_CH);
- /* fall through */
+ LLVM_FALLTHROUGH;
default: /* things that break a sequence */
if (newlen > g->mlen) { /* ends one */
start = newstart;
OpenPOWER on IntegriCloud