[llvm] r284838 - Fix -Wunused-variable warning in libFuzzer
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 21 09:26:28 PDT 2016
Author: rnk
Date: Fri Oct 21 11:26:27 2016
New Revision: 284838
URL: http://llvm.org/viewvc/llvm-project?rev=284838&view=rev
Log:
Fix -Wunused-variable warning in libFuzzer
Modified:
llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp
Modified: llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp?rev=284838&r1=284837&r2=284838&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp Fri Oct 21 11:26:27 2016
@@ -332,7 +332,7 @@ void Fuzzer::PrintStats(const char *Wher
Printf( " ft: %zd", N);
if (MaxCoverage.CallerCalleeCoverage)
Printf(" indir: %zd", MaxCoverage.CallerCalleeCoverage);
- if (size_t N = Corpus.size()) {
+ if (!Corpus.empty()) {
Printf(" corp: %zd", Corpus.NumActiveUnits());
if (size_t N = Corpus.SizeInBytes()) {
if (N < (1<<14))
More information about the llvm-commits
mailing list