diff options
author | Jie Fu <jiefu@tencent.com> | 2023-04-25 07:34:39 +0800 |
---|---|---|
committer | Jie Fu <jiefu@tencent.com> | 2023-04-25 07:34:39 +0800 |
commit | 1d097ad73b3fe38ff301f471356d15f093a2dbef (patch) | |
tree | c1ee85d6b8af07c50420c44aa7eea3fd7deb8add /clang/lib | |
parent | 7b37f732783e9b8270cbb63ff95618594dbe011b (diff) | |
download | llvm-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.cpp | 1 |
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: |