OSDN Git Service

Do not attempt to reduce a test case if it is an empty set.
authorMisha Brukman <brukman+llvm@gmail.com>
Mon, 4 Aug 2003 19:03:42 +0000 (19:03 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Mon, 4 Aug 2003 19:03:42 +0000 (19:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7570 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/Miscompilation.cpp

index b65b4a6..968a34e 100644 (file)
@@ -114,7 +114,7 @@ public:
 
   virtual TestResult doTest(std::vector<Function*> &Prefix,
                             std::vector<Function*> &Suffix) {
-    if (TestFuncs(Suffix, false))
+    if (!Suffix.empty() && TestFuncs(Suffix, false))
       return KeepSuffix;
     if (!Prefix.empty() && TestFuncs(Prefix, false))
       return KeepPrefix;