diff options
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerInternal.h')
| -rw-r--r-- | llvm/lib/Fuzzer/FuzzerInternal.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerInternal.h b/llvm/lib/Fuzzer/FuzzerInternal.h index a83d64fa811..06e20057245 100644 --- a/llvm/lib/Fuzzer/FuzzerInternal.h +++ b/llvm/lib/Fuzzer/FuzzerInternal.h @@ -374,14 +374,12 @@ public: PCMapBits = 0; VPMap.Reset(); VPMapBits = 0; - PcBufferPos = 0; } std::string DebugString() const; size_t BlockCoverage; size_t CallerCalleeCoverage; - size_t PcBufferPos; // Precalculated number of bits in CounterBitmap. size_t CounterBitmapBits; std::vector<uint8_t> CounterBitmap; @@ -486,6 +484,7 @@ private: void DeathCallback(); void ResetEdgeCoverage(); + void ResetCounters(); void PrepareCounters(Fuzzer::Coverage *C); bool RecordMaxCoverage(Fuzzer::Coverage *C); @@ -518,7 +517,7 @@ private: // For -print_pcs uintptr_t* PcBuffer = nullptr; size_t PcBufferLen = 0; - size_t PrevPcBufferPos; + size_t PcBufferPos = 0, PrevPcBufferPos = 0; // Need to know our own thread. static thread_local bool IsMyThread; |

