mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-03 01:12:53 +00:00
[libFuzzer] make sure to update CurrentUnit when drilling
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257560 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fad8ff3134
commit
43a24b5d93
@ -455,12 +455,15 @@ void Fuzzer::Drill() {
|
||||
|
||||
PrintStats("REINIT");
|
||||
SavedOutputCorpusPath.swap(Options.OutputCorpus);
|
||||
for (auto &U : SavedCorpus)
|
||||
for (auto &U : SavedCorpus) {
|
||||
CurrentUnit = U;
|
||||
RunOne(U);
|
||||
}
|
||||
PrintStats("MERGE ");
|
||||
Options.PrintNEW = true;
|
||||
size_t NumMerged = 0;
|
||||
for (auto &U : Corpus) {
|
||||
CurrentUnit = U;
|
||||
if (RunOne(U)) {
|
||||
PrintStatusForNewUnit(U);
|
||||
NumMerged++;
|
||||
|
Loading…
Reference in New Issue
Block a user