diff options
author | Kostya Serebryany <kcc@google.com> | 2016-05-26 20:03:02 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-05-26 20:03:02 +0000 |
commit | f1f3f93c9efe6a409bc79d17cd8be1f860a758b4 (patch) | |
tree | f5eae3a76f6a660a59c9efb65099478230a9752d /llvm/lib/Fuzzer/FuzzerTraceState.cpp | |
parent | 4a59a34597f49665faf351d6ee65515aa5fb86da (diff) | |
download | bcm5719-llvm-f1f3f93c9efe6a409bc79d17cd8be1f860a758b4.tar.gz bcm5719-llvm-f1f3f93c9efe6a409bc79d17cd8be1f860a758b4.zip |
[libFuzzer] reimplement the way we do -only_ascii to allow more 'const' in function declarations. Add a test for -only_ascii. NFC intended
llvm-svn: 270900
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerTraceState.cpp')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerTraceState.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerTraceState.cpp b/llvm/lib/Fuzzer/FuzzerTraceState.cpp index 8123407e98c..d994481ff38 100644 --- a/llvm/lib/Fuzzer/FuzzerTraceState.cpp +++ b/llvm/lib/Fuzzer/FuzzerTraceState.cpp @@ -175,7 +175,7 @@ static bool RecordingMemcmp = false; class TraceState { public: TraceState(MutationDispatcher &MD, const Fuzzer::FuzzingOptions &Options, - uint8_t **CurrentUnitData, size_t *CurrentUnitSize) + const uint8_t **CurrentUnitData, size_t *CurrentUnitSize) : MD(MD), Options(Options), CurrentUnitData(CurrentUnitData), CurrentUnitSize(CurrentUnitSize) { // Current trace collection is not thread-friendly and it probably @@ -293,7 +293,7 @@ class TraceState { size_t LastDfsanLabel = 0; MutationDispatcher &MD; const Fuzzer::FuzzingOptions &Options; - uint8_t **CurrentUnitData; + const uint8_t **CurrentUnitData; size_t *CurrentUnitSize; std::map<Word, size_t> AutoDictUnitCounts; size_t AutoDictAdds = 0; |