OSDN Git Service

fix llvm-isel-fuzzer: LLVMFuzzerTestOneInput should never return non-zero (according...
authorKostya Serebryany <kcc@google.com>
Mon, 16 Oct 2017 20:36:57 +0000 (20:36 +0000)
committerKostya Serebryany <kcc@google.com>
Mon, 16 Oct 2017 20:36:57 +0000 (20:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315933 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp

index 9b39483..cc886ad 100644 (file)
@@ -116,7 +116,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
   auto M = parseModule(Data, Size, Context);
   if (!M || verifyModule(*M, &errs())) {
     errs() << "error: input module is broken!\n";
-    return 1;
+    return 0;
   }
 
   // Set up the module to build for our target.