diff options
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerCorpus.h')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerCorpus.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerCorpus.h b/llvm/lib/Fuzzer/FuzzerCorpus.h index 6438a6035f1..802f700f5c9 100644 --- a/llvm/lib/Fuzzer/FuzzerCorpus.h +++ b/llvm/lib/Fuzzer/FuzzerCorpus.h @@ -58,6 +58,7 @@ class InputCorpus { ConstIter end() const { return Inputs.end(); } bool HasUnit(const Unit &U) { return Hashes.count(Hash(U)); } + bool HasUnit(const std::string &H) { return Hashes.count(H); } InputInfo &ChooseUnitToMutate(Random &Rand) { return Inputs[ChooseUnitIdxToMutate(Rand)]; }; @@ -81,7 +82,7 @@ class InputCorpus { } void PrintFeatureSet() { - Printf("Features [id: cnt idx sz] "); + Printf("Features [id: idx sz] "); for (size_t i = 0; i < kFeatureSetSize; i++) { auto &Fe = FeatureSet[i]; if (!Fe.Count) continue; |