diff options
| author | Kostya Serebryany <kcc@google.com> | 2017-03-23 23:48:47 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2017-03-23 23:48:47 +0000 |
| commit | 5f25495c4d0fc1207025651acfebdc65421a4d20 (patch) | |
| tree | c10d712af10b7c4051e53f32f0f5f5648a59847e /llvm/lib/Fuzzer/test | |
| parent | b216e3e935cb542363846d9f0c9da4b71ef513eb (diff) | |
| download | bcm5719-llvm-5f25495c4d0fc1207025651acfebdc65421a4d20.tar.gz bcm5719-llvm-5f25495c4d0fc1207025651acfebdc65421a4d20.zip | |
[libFuzzer] fix non-linux build
llvm-svn: 298666
Diffstat (limited to 'llvm/lib/Fuzzer/test')
| -rw-r--r-- | llvm/lib/Fuzzer/test/TableLookupTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/test/TableLookupTest.cpp b/llvm/lib/Fuzzer/test/TableLookupTest.cpp index 165afdb391f..f9d5610820f 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) { |

