OSDN Git Service

Only test the vector of functions if it is non-empty.
authorMisha Brukman <brukman+llvm@gmail.com>
Tue, 5 Aug 2003 15:26:21 +0000 (15:26 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Tue, 5 Aug 2003 15:26:21 +0000 (15:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7594 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/CrashDebugger.cpp

index 852359a..8727255 100644 (file)
@@ -80,7 +80,7 @@ public:
 
   virtual TestResult doTest(std::vector<Function*> &Prefix,
                             std::vector<Function*> &Kept) {
-    if (TestFuncs(Kept))
+    if (!Kept.empty() && TestFuncs(Kept))
       return KeepSuffix;
     if (!Prefix.empty() && TestFuncs(Prefix))
       return KeepPrefix;