Skip to content

Commit

Permalink
[libFuzzer] make code less clever to avoid fallthrough in switch (and…
Browse files Browse the repository at this point in the history
… in turn avoid compiler warnings). NFC. Suggested by Christian Holler.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294239 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
kcc committed Feb 6, 2017
1 parent 94dcd1b commit 522017c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Fuzzer/FuzzerMutate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,9 @@ size_t MutationDispatcher::Mutate_CrossOver(uint8_t *Data, size_t Size,
break;
case 1:
NewSize = InsertPartOf(O.data(), O.size(), U.data(), U.size(), MaxSize);
if (NewSize)
break;
// LLVM_FALLTHROUGH;
if (!NewSize)
NewSize = CopyPartOf(O.data(), O.size(), U.data(), U.size());
break;
case 2:
NewSize = CopyPartOf(O.data(), O.size(), U.data(), U.size());
break;
Expand Down

0 comments on commit 522017c

Please sign in to comment.