mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-18 05:50:38 +00:00
[llvm-opt-fuzzer] Fix build after rL324225
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@324232 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dfc05c7fc8
commit
8b61abeffd
@ -67,7 +67,9 @@ extern "C" LLVM_ATTRIBUTE_USED size_t LLVMFuzzerCustomMutator(
|
||||
|
||||
if (verifyModule(*M, &errs())) {
|
||||
errs() << "mutation result doesn't pass verification\n";
|
||||
#ifndef NDEBUG
|
||||
M->dump();
|
||||
#endif
|
||||
// Avoid adding incorrect test cases to the corpus.
|
||||
return 0;
|
||||
}
|
||||
@ -90,7 +92,9 @@ extern "C" LLVM_ATTRIBUTE_USED size_t LLVMFuzzerCustomMutator(
|
||||
reinterpret_cast<const uint8_t*>(Buf.data()), Buf.size(), Context);
|
||||
if (!NewM) {
|
||||
errs() << "mutator failed to re-read the module\n";
|
||||
#ifndef NDEBUG
|
||||
M->dump();
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user