From: Kostya Serebryany Date: Thu, 23 Mar 2017 23:48:47 +0000 (+0000) Subject: [libFuzzer] fix non-linux build X-Git-Tag: llvmorg-5.0.0-rc1~9283 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f25495c4d0fc1207025651acfebdc65421a4d20;p=platform%2Fupstream%2Fllvm.git [libFuzzer] fix non-linux build llvm-svn: 298666 --- diff --git a/llvm/lib/Fuzzer/test/TableLookupTest.cpp b/llvm/lib/Fuzzer/test/TableLookupTest.cpp index 165afdb..f9d5610 100644 --- a/llvm/lib/Fuzzer/test/TableLookupTest.cpp +++ b/llvm/lib/Fuzzer/test/TableLookupTest.cpp @@ -22,7 +22,9 @@ const size_t N = 1 << 12; // Use either `Counters[Idx] = 1` or `Counters[Idx]++;` // depending on whether multiple occurrences of the event 'Idx' // is important to distinguish from one occurrence. +#ifdef __linux__ alignas(64) __attribute__((section("__libfuzzer_extra_counters"))) +#endif static uint8_t Counters[N]; extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {