summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerCorpus.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-10-06 05:14:00 +0000
committerKostya Serebryany <kcc@google.com>2016-10-06 05:14:00 +0000
commit936b1e774f1f357bfd5fc9e2d63a2b6a44e1c846 (patch)
tree37b91e95a2f089091773d0610ec19dc75ee8fc0e /llvm/lib/Fuzzer/FuzzerCorpus.h
parent1201117e604bb46087788bbebae401d9a4187df1 (diff)
downloadbcm5719-llvm-936b1e774f1f357bfd5fc9e2d63a2b6a44e1c846.tar.gz
bcm5719-llvm-936b1e774f1f357bfd5fc9e2d63a2b6a44e1c846.zip
[libFuzzer] be more careful with memory usage, print peak rss in status lines
llvm-svn: 283418
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerCorpus.h')
-rw-r--r--llvm/lib/Fuzzer/FuzzerCorpus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerCorpus.h b/llvm/lib/Fuzzer/FuzzerCorpus.h
index a46f1dccb45..382980b9fee 100644
--- a/llvm/lib/Fuzzer/FuzzerCorpus.h
+++ b/llvm/lib/Fuzzer/FuzzerCorpus.h
@@ -123,7 +123,7 @@ class InputCorpus {
assert(II.NumFeatures > 0);
II.NumFeatures--;
if (II.NumFeatures == 0) {
- II.U.clear();
+ Unit().swap(II.U);
if (FeatureDebug)
Printf("EVICTED %zd\n", SmallestElementPerFeature[Idx]);
}
OpenPOWER on IntegriCloud