summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerMutate.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2015-02-19 18:21:12 +0000
committerKostya Serebryany <kcc@google.com>2015-02-19 18:21:12 +0000
commit2117269dd1fb7355fb7a3c6b83046c9973b161b3 (patch)
tree7f89ed2a82714dcbc23462957907f5b3ed2ca126 /llvm/lib/Fuzzer/FuzzerMutate.cpp
parent3f1c2852942f3686f9c4e90e9033335da62d12c4 (diff)
downloadbcm5719-llvm-2117269dd1fb7355fb7a3c6b83046c9973b161b3.tar.gz
bcm5719-llvm-2117269dd1fb7355fb7a3c6b83046c9973b161b3.zip
[fuzzer] properly annotate fallthrough, add one more entry to FAQ
llvm-svn: 229880
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerMutate.cpp')
-rw-r--r--llvm/lib/Fuzzer/FuzzerMutate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerMutate.cpp b/llvm/lib/Fuzzer/FuzzerMutate.cpp
index 60d5623ada6..b28264ac8c1 100644
--- a/llvm/lib/Fuzzer/FuzzerMutate.cpp
+++ b/llvm/lib/Fuzzer/FuzzerMutate.cpp
@@ -47,7 +47,7 @@ void Mutate(Unit *U, size_t MaxLen) {
U->erase(U->begin() + rand() % U->size());
break;
}
- // Fallthrough
+ [[clang::fallthrough]];
case 1:
if (U->size() < MaxLen) {
U->insert(U->begin() + rand() % U->size(), RandCh());
OpenPOWER on IntegriCloud