Skip to content

Commit 0b32781

Browse files
committed
[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.
1 parent 1746460 commit 0b32781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/fuzzer/FuzzerInternal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ using namespace std::chrono;
3232
class Fuzzer final {
3333
public:
3434
Fuzzer(UserCallback CB, InputCorpus &Corpus, MutationDispatcher &MD,
35-
FuzzingOptions &Options);
35+
const FuzzingOptions &Options);
3636
~Fuzzer() = delete;
3737
void Loop(std::vector<SizedFile> &CorporaFiles);
3838
void ReadAndExecuteSeedCorpora(std::vector<SizedFile> &CorporaFiles);

0 commit comments

Comments
 (0)