aboutsummaryrefslogtreecommitdiff
path: root/clang/lib
diff options
context:
space:
mode:
authorJie Fu <jiefu@tencent.com>2023-04-25 07:34:39 +0800
committerJie Fu <jiefu@tencent.com>2023-04-25 07:34:39 +0800
commit1d097ad73b3fe38ff301f471356d15f093a2dbef (patch)
treec1ee85d6b8af07c50420c44aa7eea3fd7deb8add /clang/lib
parent7b37f732783e9b8270cbb63ff95618594dbe011b (diff)
downloadllvm-1d097ad73b3fe38ff301f471356d15f093a2dbef.zip
llvm-1d097ad73b3fe38ff301f471356d15f093a2dbef.tar.gz
llvm-1d097ad73b3fe38ff301f471356d15f093a2dbef.tar.bz2
[clang] Fix -Wimplicit-fallthrough in UnsafeBufferUsage.cpp [NFC]
/Users/jiefu/llvm-project/clang/lib/Analysis/UnsafeBufferUsage.cpp:1272:5: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough] case Strategy::Kind::Wontfix: ^ /Users/jiefu/llvm-project/clang/lib/Analysis/UnsafeBufferUsage.cpp:1272:5: note: insert 'LLVM_FALLTHROUGH;' to silence this warning case Strategy::Kind::Wontfix: ^ LLVM_FALLTHROUGH; /Users/jiefu/llvm-project/clang/lib/Analysis/UnsafeBufferUsage.cpp:1272:5: note: insert 'break;' to avoid fall-through case Strategy::Kind::Wontfix: ^ break; 1 error generated.
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Analysis/UnsafeBufferUsage.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Analysis/UnsafeBufferUsage.cpp b/clang/lib/Analysis/UnsafeBufferUsage.cpp
index 037efc9..3b58a51 100644
--- a/clang/lib/Analysis/UnsafeBufferUsage.cpp
+++ b/clang/lib/Analysis/UnsafeBufferUsage.cpp
@@ -1269,6 +1269,7 @@ std::optional<FixItList> UPCStandalonePointerGadget::getFixits(const Strategy &S
return FixItList{{FixItHint::CreateInsertion(
*EndOfOperand, ".data()")}};
}
+ [[fallthrough]];
case Strategy::Kind::Wontfix:
case Strategy::Kind::Iterator:
case Strategy::Kind::Array: