diff options
author | Kostya Serebryany <kcc@google.com> | 2016-01-22 23:55:14 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-01-22 23:55:14 +0000 |
commit | 160dcba81f3610175876ffe8915b18033862ff7e (patch) | |
tree | 268c1c4f3107b5bbe39d34c88345854010cac77f /llvm/lib/Fuzzer/FuzzerInternal.h | |
parent | 8012496a911ea08e46172b4c3b556761f10ae684 (diff) | |
download | bcm5719-llvm-160dcba81f3610175876ffe8915b18033862ff7e.tar.gz bcm5719-llvm-160dcba81f3610175876ffe8915b18033862ff7e.zip |
[libFuzzer] add more fields to DictionaryEntry to count the number of uses and successes
llvm-svn: 258589
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerInternal.h')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerInternal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerInternal.h b/llvm/lib/Fuzzer/FuzzerInternal.h index 500dc63fc44..53b6cef4d91 100644 --- a/llvm/lib/Fuzzer/FuzzerInternal.h +++ b/llvm/lib/Fuzzer/FuzzerInternal.h @@ -32,7 +32,7 @@ typedef std::vector<uint8_t> Unit; // A simple POD sized array of bytes. template <size_t kMaxSize> class FixedWord { public: - FixedWord() : Size(0) {} + FixedWord() {} FixedWord(const uint8_t *B, uint8_t S) { Set(B, S); } void Set(const uint8_t *B, uint8_t S) { @@ -56,7 +56,7 @@ public: uint8_t size() const { return Size; } private: - uint8_t Size; + uint8_t Size = 0; uint8_t Data[kMaxSize]; }; |