]> granicus.if.org Git - llvm/commitdiff
[libFuzzer] remove even more stale code
authorKostya Serebryany <kcc@google.com>
Wed, 15 Mar 2017 00:39:06 +0000 (00:39 +0000)
committerKostya Serebryany <kcc@google.com>
Wed, 15 Mar 2017 00:39:06 +0000 (00:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297797 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Fuzzer/FuzzerInternal.h
lib/Fuzzer/FuzzerLoop.cpp

index 3a3889723f7fcde9f3ef9260f204eb418d347541..b15f614d726670702c5eb546ee03400e76a608da 100644 (file)
@@ -141,8 +141,6 @@ private:
 
   // Need to know our own thread.
   static thread_local bool IsMyThread;
-
-  bool InMergeMode = false;
 };
 
 }; // namespace fuzzer
index 4f1755055c04713ffcbd4087d6b07853be5fea4f..aeffb4388b17f6f2778266d32586edcf93809f1b 100644 (file)
@@ -150,23 +150,7 @@ void Fuzzer::StaticDeathCallback() {
   F->DeathCallback();
 }
 
-static void WarnOnUnsuccessfullMerge(bool DoWarn) {
-  if (!DoWarn) return;
-  Printf(
-   "***\n"
-   "***\n"
-   "***\n"
-   "*** NOTE: merge did not succeed due to a failure on one of the inputs.\n"
-   "*** You will need to filter out crashes from the corpus, e.g. like this:\n"
-   "***   for f in WITH_CRASHES/*; do ./fuzzer $f && cp $f NO_CRASHES; done\n"
-   "*** Future versions may have crash-resistant merge, stay tuned.\n"
-   "***\n"
-   "***\n"
-   "***\n");
-}
-
 void Fuzzer::DumpCurrentUnit(const char *Prefix) {
-  WarnOnUnsuccessfullMerge(InMergeMode);
   if (!CurrentUnitData) return;  // Happens when running individual inputs.
   MD.PrintMutationSequence();
   Printf("; base unit: %s\n", Sha1ToString(BaseSha1).c_str());