summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/FuzzerDriver.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2017-09-15 22:10:36 +0000
committerKostya Serebryany <kcc@google.com>2017-09-15 22:10:36 +0000
commitbcd78491ef22754d15ea4dddea2425e0e673baf9 (patch)
tree81f28a1d123914443e9ab7a54daedb12a1730b10 /compiler-rt/lib/fuzzer/FuzzerDriver.cpp
parenteed09732707c6825870852bdacd43790e7fa57f8 (diff)
downloadbcm5719-llvm-bcd78491ef22754d15ea4dddea2425e0e673baf9.tar.gz
bcm5719-llvm-bcd78491ef22754d15ea4dddea2425e0e673baf9.zip
[libFuzzer] minor refactoring, NFC
llvm-svn: 313406
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerDriver.cpp')
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerDriver.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerDriver.cpp b/compiler-rt/lib/fuzzer/FuzzerDriver.cpp
index 804f426e921..cc995348e87 100644
--- a/compiler-rt/lib/fuzzer/FuzzerDriver.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerDriver.cpp
@@ -471,9 +471,8 @@ int AnalyzeDictionary(Fuzzer *F, const Vector<Unit>& Dict,
// Get coverage for the testcase without modifications.
F->ExecuteCallback(C.data(), C.size());
InitialFeatures.clear();
- TPC.CollectFeatures([&](size_t Feature) -> bool {
+ TPC.CollectFeatures([&](size_t Feature) {
InitialFeatures.push_back(Feature);
- return true;
});
for (size_t i = 0; i < Dict.size(); ++i) {
@@ -498,9 +497,8 @@ int AnalyzeDictionary(Fuzzer *F, const Vector<Unit>& Dict,
// Get coverage for testcase with masked occurrences of dictionary unit.
F->ExecuteCallback(Data.data(), Data.size());
ModifiedFeatures.clear();
- TPC.CollectFeatures([&](size_t Feature) -> bool {
+ TPC.CollectFeatures([&](size_t Feature) {
ModifiedFeatures.push_back(Feature);
- return true;
});
if (InitialFeatures == ModifiedFeatures)
OpenPOWER on IntegriCloud