diff options
author | Adrian Prantl <aprantl@apple.com> | 2017-12-19 22:06:11 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2017-12-19 22:06:11 +0000 |
commit | f3b3ccda590c14513ff372bb9a26ae5d644fb0bc (patch) | |
tree | b96082db4e4367c26bd2bc54c10e8f6f42aeeaf3 /clang/lib/Sema/SemaExpr.cpp | |
parent | 0e6694d111b6d3c0438f2b72fab6d10b7b4eab6c (diff) | |
download | bcm5719-llvm-f3b3ccda590c14513ff372bb9a26ae5d644fb0bc.tar.gz bcm5719-llvm-f3b3ccda590c14513ff372bb9a26ae5d644fb0bc.zip |
Silence a bunch of implicit fallthrough warnings
llvm-svn: 321115
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 929806ac6bf..4746355e980 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -817,7 +817,7 @@ void Sema::checkVariadicArgument(const Expr *E, VariadicCallType CT) { E->getLocStart(), nullptr, PDiag(diag::warn_cxx98_compat_pass_non_pod_arg_to_vararg) << Ty << CT); - // Fall through. + LLVM_FALLTHROUGH; case VAK_Valid: if (Ty->isRecordType()) { // This is unlikely to be what the user intended. If the class has a @@ -2881,7 +2881,7 @@ ExprResult Sema::BuildDeclarationNameExpr( valueKind = VK_RValue; break; } - // fallthrough + LLVM_FALLTHROUGH; case Decl::ImplicitParam: case Decl::ParmVar: { @@ -2978,7 +2978,7 @@ ExprResult Sema::BuildDeclarationNameExpr( valueKind = VK_LValue; break; } - // fallthrough + LLVM_FALLTHROUGH; case Decl::CXXConversion: case Decl::CXXDestructor: |