[llvm] r369490 - Fix 'fall through' annotation

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 20 21:05:34 PDT 2019


Author: vitalybuka
Date: Tue Aug 20 21:05:34 2019
New Revision: 369490

URL: http://llvm.org/viewvc/llvm-project?rev=369490&view=rev
Log:
Fix 'fall through' annotation

Modified:
    llvm/trunk/lib/Support/regcomp.c

Modified: llvm/trunk/lib/Support/regcomp.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/regcomp.c?rev=369490&r1=369489&r2=369490&view=diff
==============================================================================
--- llvm/trunk/lib/Support/regcomp.c (original)
+++ llvm/trunk/lib/Support/regcomp.c Tue Aug 20 21:05:34 2019
@@ -537,7 +537,7 @@ p_ere_exp(struct parse *p)
 		break;
 	case '{':		/* okay as ordinary except if digit follows */
 		REQUIRE(!MORE() || !isdigit((uch)PEEK()), REG_BADRPT);
-		/* FALLTHROUGH */
+		/* fall through */
 	default:
 		ordinary(p, c);
 		break;
@@ -733,7 +733,7 @@ p_simp_re(struct parse *p,
 		break;
 	case '*':
 		REQUIRE(starordinary, REG_BADRPT);
-		/* FALLTHROUGH */
+		/* fall through */
 	default:
 		ordinary(p, (char)c);
 		break;
@@ -1635,7 +1635,7 @@ findmust(struct parse *p, struct re_guts
 					return;
 				}
 			} while (OP(s) != O_QUEST && OP(s) != O_CH);
-			/* fallthrough */
+			/* fall through */
 		default:		/* things that break a sequence */
 			if (newlen > g->mlen) {		/* ends one */
 				start = newstart;




More information about the llvm-commits mailing list