diff options
author | Kostya Serebryany <kcc@google.com> | 2016-09-17 06:01:55 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-09-17 06:01:55 +0000 |
commit | bc3789a9190f8ad51642c0dc430eaae433a1606c (patch) | |
tree | 5c7d37103fbceadec62c953eed015361f05ff1e0 /llvm/lib/Fuzzer/FuzzerInternal.h | |
parent | a53d49e1b547a9658be46865d687aeb481b3b32c (diff) | |
download | bcm5719-llvm-bc3789a9190f8ad51642c0dc430eaae433a1606c.tar.gz bcm5719-llvm-bc3789a9190f8ad51642c0dc430eaae433a1606c.zip |
[libFuzzer] properly reset the guards when reseting the coverage. Also try to fix check-fuzzer on the bot
llvm-svn: 281814
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerInternal.h')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerInternal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerInternal.h b/llvm/lib/Fuzzer/FuzzerInternal.h index 69b38abc26f..3cecd21ab46 100644 --- a/llvm/lib/Fuzzer/FuzzerInternal.h +++ b/llvm/lib/Fuzzer/FuzzerInternal.h @@ -380,6 +380,7 @@ class TracePC { NumNewPCs = 0; CounterMap.Reset(); TotalCoverageMap.Reset(); + ResetGuards(); } void PrintModuleInfo(); @@ -394,6 +395,8 @@ private: size_t NumNewPCs = 0; void AddNewPC(uintptr_t PC) { NewPCs[(NumNewPCs++) % kMaxNewPCs] = PC; } + void ResetGuards(); + struct Module { uint64_t *Start, *Stop; }; |