diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2017-12-22 23:29:49 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2017-12-22 23:29:49 +0000 |
| commit | f10cc025917d12eec878056cc1405236aa6e24c6 (patch) | |
| tree | ff9f1e9dfdc779697fe930d761f2fccf50e2b20f /clang/lib | |
| parent | afeae77058e858e23533a58e7ace6051ac2aff96 (diff) | |
| download | bcm5719-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.cpp | 1 |
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; |

