diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-08-05 15:26:21 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-08-05 15:26:21 +0000 |
commit | a493ae300b01bae69b66d961b5d67be5d64e129a (patch) | |
tree | 7ab434340cef1c90dc6355ccf2664d88c4a646f0 | |
parent | d88ba5a861f400116ec4343a0542e0c58ba0e6a5 (diff) |
Only test the vector of functions if it is non-empty.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7594 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/bugpoint/CrashDebugger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp index 852359a8c2..872725593e 100644 --- a/tools/bugpoint/CrashDebugger.cpp +++ b/tools/bugpoint/CrashDebugger.cpp @@ -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; |