Add an explicit `LLVM_FALLTHROUGH` annotation to an intentional

fallthrough. Fixes GCC and Clang warnings about this.

llvm-svn: 321392
This commit is contained in:
Chandler Carruth 2017-12-22 23:29:49 +00:00
parent afeae77058
commit f10cc02591
1 changed files with 1 additions and 0 deletions

View File

@ -3143,6 +3143,7 @@ static void warnAboutRedundantParens(Sema &S, Declarator &D, QualType T) {
case DeclaratorChunk::Paren:
if (&C == &Paren)
continue;
LLVM_FALLTHROUGH;
case DeclaratorChunk::Pointer:
StartsWithDeclaratorId = false;
continue;