summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/FuzzerLoop.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2019-02-14 23:12:33 +0000
committerKostya Serebryany <kcc@google.com>2019-02-14 23:12:33 +0000
commit96f81bc679c67a8893d74b7cc2e179992b598d31 (patch)
tree220c5b21a1671fca95e60c4521457cfe1d5e62d1 /compiler-rt/lib/fuzzer/FuzzerLoop.cpp
parent85eb363d56d40b83880d310a1b53855a68e873c9 (diff)
downloadbcm5719-llvm-96f81bc679c67a8893d74b7cc2e179992b598d31.tar.gz
bcm5719-llvm-96f81bc679c67a8893d74b7cc2e179992b598d31.zip
[libFuzzer] when doing the merge, keep track of the coveraged edges, not just features
llvm-svn: 354076
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerLoop.cpp')
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerLoop.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerLoop.cpp b/compiler-rt/lib/fuzzer/FuzzerLoop.cpp
index 5cd0cddc39b..7dc2fd48dd7 100644
--- a/compiler-rt/lib/fuzzer/FuzzerLoop.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerLoop.cpp
@@ -384,10 +384,10 @@ void Fuzzer::SetMaxMutationLen(size_t MaxMutationLen) {
void Fuzzer::CheckExitOnSrcPosOrItem() {
if (!Options.ExitOnSrcPos.empty()) {
static auto *PCsSet = new Set<uintptr_t>;
- auto HandlePC = [&](uintptr_t PC) {
- if (!PCsSet->insert(PC).second)
+ auto HandlePC = [&](const TracePC::PCTableEntry *TE) {
+ if (!PCsSet->insert(TE->PC).second)
return;
- std::string Descr = DescribePC("%F %L", PC + 1);
+ std::string Descr = DescribePC("%F %L", TE->PC + 1);
if (Descr.find(Options.ExitOnSrcPos) != std::string::npos) {
Printf("INFO: found line matching '%s', exiting.\n",
Options.ExitOnSrcPos.c_str());
OpenPOWER on IntegriCloud