r321392 - Add an explicit `LLVM_FALLTHROUGH` annotation to an intentional
Chandler Carruth via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 22 15:29:49 PST 2017
Author: chandlerc
Date: Fri Dec 22 15:29:49 2017
New Revision: 321392
URL: http://llvm.org/viewvc/llvm-project?rev=321392&view=rev
Log:
Add an explicit `LLVM_FALLTHROUGH` annotation to an intentional
fallthrough. Fixes GCC and Clang warnings about this.
Modified:
cfe/trunk/lib/Sema/SemaType.cpp
Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=321392&r1=321391&r2=321392&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Fri Dec 22 15:29:49 2017
@@ -3143,6 +3143,7 @@ static void warnAboutRedundantParens(Sem
case DeclaratorChunk::Paren:
if (&C == &Paren)
continue;
+ LLVM_FALLTHROUGH;
case DeclaratorChunk::Pointer:
StartsWithDeclaratorId = false;
continue;
More information about the cfe-commits
mailing list