summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2017-12-22 23:29:49 +0000
committerChandler Carruth <chandlerc@gmail.com>2017-12-22 23:29:49 +0000
commitf10cc025917d12eec878056cc1405236aa6e24c6 (patch)
treeff9f1e9dfdc779697fe930d761f2fccf50e2b20f /clang/lib
parentafeae77058e858e23533a58e7ace6051ac2aff96 (diff)
downloadbcm5719-llvm-f10cc025917d12eec878056cc1405236aa6e24c6.tar.gz
bcm5719-llvm-f10cc025917d12eec878056cc1405236aa6e24c6.zip
Add an explicit `LLVM_FALLTHROUGH` annotation to an intentional
fallthrough. Fixes GCC and Clang warnings about this. llvm-svn: 321392
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaType.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp
index 63a4963946e..2530b766f5f 100644
--- a/clang/lib/Sema/SemaType.cpp
+++ b/clang/lib/Sema/SemaType.cpp
@@ -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;
OpenPOWER on IntegriCloud