summaryrefslogtreecommitdiff
path: root/lib/Fuzzer/FuzzerMain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Fuzzer/FuzzerMain.cpp')
-rw-r--r--lib/Fuzzer/FuzzerMain.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Fuzzer/FuzzerMain.cpp b/lib/Fuzzer/FuzzerMain.cpp
index c5af5b0590910..55f1687b5f0b0 100644
--- a/lib/Fuzzer/FuzzerMain.cpp
+++ b/lib/Fuzzer/FuzzerMain.cpp
@@ -12,9 +12,11 @@
#include "FuzzerInterface.h"
#include "FuzzerInternal.h"
+extern "C" {
// This function should be defined by the user.
-extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);
+int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);
+} // extern "C"
int main(int argc, char **argv) {
- return fuzzer::FuzzerDriver(argc, argv, LLVMFuzzerTestOneInput);
+ return fuzzer::FuzzerDriver(&argc, &argv, LLVMFuzzerTestOneInput);
}