[llvm] r290899 - [libFuzzer] disable -print_pcs by default (was enabled by mistake)
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 3 10:51:28 PST 2017
Author: kcc
Date: Tue Jan 3 12:51:28 2017
New Revision: 290899
URL: http://llvm.org/viewvc/llvm-project?rev=290899&view=rev
Log:
[libFuzzer] disable -print_pcs by default (was enabled by mistake)
Modified:
llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp
Modified: llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp?rev=290899&r1=290898&r2=290899&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp Tue Jan 3 12:51:28 2017
@@ -80,6 +80,7 @@ static bool IsInterestingCoverageFile(st
}
void TracePC::InitializePrintNewPCs() {
+ if (!DoPrintNewPCs) return;
assert(!PrintedPCs);
PrintedPCs = new std::set<uintptr_t>;
for (size_t i = 1; i < GetNumPCs(); i++)
@@ -88,6 +89,7 @@ void TracePC::InitializePrintNewPCs() {
}
void TracePC::PrintNewPCs() {
+ if (!DoPrintNewPCs) return;
assert(PrintedPCs);
for (size_t i = 1; i < GetNumPCs(); i++)
if (PCs[i] && PrintedPCs->insert(PCs[i]).second)
More information about the llvm-commits
mailing list