mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-09 13:55:22 +00:00
[libFuzzer] make sure to update CurrentUnit when drilling
llvm-svn: 257560
This commit is contained in:
parent
dc3ea04303
commit
ec88d2d728
@ -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…
x
Reference in New Issue
Block a user