[compiler-rt] 0b32781 - [libfuzzer] Fix build error due to out-of-line definition of 'Fuzzer' does not match any declaration in 'fuzzer::Fuzzer' (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 9 22:53:16 PST 2023
Author: Jie Fu
Date: 2023-03-10T14:52:28+08:00
New Revision: 0b327814d86c7e09a6932efdbff6c83e55a2f06c
URL: https://github.com/llvm/llvm-project/commit/0b327814d86c7e09a6932efdbff6c83e55a2f06c
DIFF: https://github.com/llvm/llvm-project/commit/0b327814d86c7e09a6932efdbff6c83e55a2f06c.diff
LOG: [libfuzzer] Fix build error due to out-of-line definition of 'Fuzzer' does not match any declaration in 'fuzzer::Fuzzer' (NFC)
/data/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:138:9: error: out-of-line definition of 'Fuzzer' does not match any declaration in 'fuzzer::Fuzzer'
Fuzzer::Fuzzer(UserCallback CB, InputCorpus &Corpus, MutationDispatcher &MD,
^~~~~~
/data/llvm-project/compiler-rt/lib/fuzzer/FuzzerInternal.h:35:10: note: type of 4th parameter of member declaration does not match definition ('fuzzer::FuzzingOptions &' vs 'const fuzzer::FuzzingOptions &')
FuzzingOptions &Options);
^
1 error generated.
Added:
Modified:
compiler-rt/lib/fuzzer/FuzzerInternal.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/fuzzer/FuzzerInternal.h b/compiler-rt/lib/fuzzer/FuzzerInternal.h
index e32ee37d4c28..88504705137a 100644
--- a/compiler-rt/lib/fuzzer/FuzzerInternal.h
+++ b/compiler-rt/lib/fuzzer/FuzzerInternal.h
@@ -32,7 +32,7 @@ using namespace std::chrono;
class Fuzzer final {
public:
Fuzzer(UserCallback CB, InputCorpus &Corpus, MutationDispatcher &MD,
- FuzzingOptions &Options);
+ const FuzzingOptions &Options);
~Fuzzer() = delete;
void Loop(std::vector<SizedFile> &CorporaFiles);
void ReadAndExecuteSeedCorpora(std::vector<SizedFile> &CorporaFiles);
More information about the llvm-commits
mailing list