projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3271ae
)
[llvm-opt-fuzzer] Fix build after rL324225
author
Igor Laevsky
<igmyrj@gmail.com>
Mon, 5 Feb 2018 12:47:40 +0000
(12:47 +0000)
committer
Igor Laevsky
<igmyrj@gmail.com>
Mon, 5 Feb 2018 12:47:40 +0000
(12:47 +0000)
llvm-svn: 324232
llvm/tools/llvm-opt-fuzzer/llvm-opt-fuzzer.cpp
patch
|
blob
|
history
diff --git
a/llvm/tools/llvm-opt-fuzzer/llvm-opt-fuzzer.cpp
b/llvm/tools/llvm-opt-fuzzer/llvm-opt-fuzzer.cpp
index
39909ec
..
52e5f70
100644
(file)
--- a/
llvm/tools/llvm-opt-fuzzer/llvm-opt-fuzzer.cpp
+++ b/
llvm/tools/llvm-opt-fuzzer/llvm-opt-fuzzer.cpp
@@
-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;
}