mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 14:47:00 +00:00
[libFuzzer] fix non-linux build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298666 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
77bbb637bc
commit
ce68a403f2
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user