[llvm] r278970 - Replace a few more "fall through" comments with LLVM_FALLTHROUGH

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 14:56:48 PDT 2016


Kostya Serebryany <kcc at google.com> writes:
> FYI: this broke libFuzzer.
> libFuzzer does not (and should not) include any of the LLVM headers,
> and so LLVM_FALLTHROUGH is not defined.
> fixed in 278982

Oops, sorry about that. I still don't really understand why libfuzzer
doesn't refer to any LLVM headers (especially Compiler.h, which is
purely cross compiler compatibility), but so be it.

It's curious that this didn't fail locally though - does libfuzzer not
build by default?

> --kcc
>
> On Wed, Aug 17, 2016 at 1:30 PM, Justin Bogner via llvm-commits <
> llvm-commits at lists.llvm.org> wrote:
>
>> Author: bogner
>> Date: Wed Aug 17 15:30:52 2016
>> New Revision: 278970
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=278970&view=rev
>> Log:
>> Replace a few more "fall through" comments with LLVM_FALLTHROUGH
>>
>> Follow up to r278902. I had missed "fall through", with a space.
>>
>>
>> Modified: llvm/trunk/lib/Fuzzer/FuzzerMutate.cpp
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/
>> FuzzerMutate.cpp?rev=278970&r1=278969&r2=278970&view=diff
>> ============================================================
>> ==================
>> --- llvm/trunk/lib/Fuzzer/FuzzerMutate.cpp (original)
>> +++ llvm/trunk/lib/Fuzzer/FuzzerMutate.cpp Wed Aug 17 15:30:52 2016
>> @@ -286,7 +286,7 @@ size_t MutationDispatcher::Mutate_CrossO
>>        NewSize = InsertPartOf(O.data(), O.size(), U.data(), U.size(),
>> MaxSize);
>>        if (NewSize)
>>          break;
>> -      // Fallthrough
>> +      LLVM_FALLTHROUGH;
>>      case 2:
>>        NewSize = CopyPartOf(O.data(), O.size(), U.data(), U.size());
>>        break;
>>
>>


More information about the llvm-commits mailing list