Add an explicit `LLVM_FALLTHROUGH` annotation to an intentional
authorChandler Carruth <chandlerc@gmail.com>
Fri, 22 Dec 2017 23:29:49 +0000 (23:29 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 22 Dec 2017 23:29:49 +0000 (23:29 +0000)
fallthrough. Fixes GCC and Clang warnings about this.

llvm-svn: 321392

clang/lib/Sema/SemaType.cpp

index 63a4963..2530b76 100644 (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;