[llvm] r315933 - fix llvm-isel-fuzzer: LLVMFuzzerTestOneInput should never return non-zero (according to the contract)
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 16 13:36:57 PDT 2017
Author: kcc
Date: Mon Oct 16 13:36:57 2017
New Revision: 315933
URL: http://llvm.org/viewvc/llvm-project?rev=315933&view=rev
Log:
fix llvm-isel-fuzzer: LLVMFuzzerTestOneInput should never return non-zero (according to the contract)
Modified:
llvm/trunk/tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp
Modified: llvm/trunk/tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp?rev=315933&r1=315932&r2=315933&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp (original)
+++ llvm/trunk/tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp Mon Oct 16 13:36:57 2017
@@ -116,7 +116,7 @@ extern "C" int LLVMFuzzerTestOneInput(co
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.
More information about the llvm-commits
mailing list