diff options
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerLoop.cpp')
| -rw-r--r-- | llvm/lib/Fuzzer/FuzzerLoop.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerLoop.cpp b/llvm/lib/Fuzzer/FuzzerLoop.cpp index ed8a1fb44de..ccd1c4e11c4 100644 --- a/llvm/lib/Fuzzer/FuzzerLoop.cpp +++ b/llvm/lib/Fuzzer/FuzzerLoop.cpp @@ -177,9 +177,10 @@ void Fuzzer::DumpCurrentUnit(const char *Prefix) { NO_SANITIZE_MEMORY void Fuzzer::DeathCallback() { - if (!CurrentUnitSize) return; - Printf("DEATH:\n"); - DumpCurrentUnit("crash-"); + if (CurrentUnitSize) { + Printf("DEATH:\n"); + DumpCurrentUnit("crash-"); + } PrintFinalStats(); } |

