Teach bugpoint to be a little bit smarter and avoid repeating work
authorChris Lattner <sabre@nondot.org>
Fri, 23 Apr 2004 20:36:51 +0000 (20:36 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 23 Apr 2004 20:36:51 +0000 (20:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13132 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/Miscompilation.cpp

index cda0098f8873ee60cf1c12e02c3600698eec4002..3e532226b951301eb2d62a2651e8b5a9d8332141 100644 (file)
@@ -108,7 +108,11 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix,
     exit(1);
   }
   removeFile(BytecodeResult);  // No longer need the file on disk
-    
+
+  // Don't check if there are no passes in the suffix.
+  if (Suffix.empty())
+    return NoFailure;
+  
   std::cout << "Checking to see if '" << getPassesString(Suffix)
             << "' passes compile correctly after the '"
             << getPassesString(Prefix) << "' passes: ";