diff options
Diffstat (limited to 'llvm/lib/Fuzzer/test')
-rw-r--r-- | llvm/lib/Fuzzer/test/AFLDriverTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/test/AFLDriverTest.cpp b/llvm/lib/Fuzzer/test/AFLDriverTest.cpp index 576c53808b7..3dd0b611730 100644 --- a/llvm/lib/Fuzzer/test/AFLDriverTest.cpp +++ b/llvm/lib/Fuzzer/test/AFLDriverTest.cpp @@ -11,6 +11,12 @@ extern "C" int __afl_persistent_loop(unsigned int) { return 0; } +// This declaration exists to prevent the Darwin linker +// from complaining about this being a missing weak symbol. +extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) { + return 0; +} + extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { return 0; } |