1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

fix llvm-isel-fuzzer: LLVMFuzzerTestOneInput should never return non-zero (according to the contract)

llvm-svn: 315933
This commit is contained in:
Kostya Serebryany 2017-10-16 20:36:57 +00:00
parent d944383901
commit 8b8004661c

View 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.