From a493ae300b01bae69b66d961b5d67be5d64e129a Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Tue, 5 Aug 2003 15:26:21 +0000 Subject: [PATCH] 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 --- tools/bugpoint/CrashDebugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp index 852359a8c24..872725593e2 100644 --- a/tools/bugpoint/CrashDebugger.cpp +++ b/tools/bugpoint/CrashDebugger.cpp @@ -80,7 +80,7 @@ public: virtual TestResult doTest(std::vector &Prefix, std::vector &Kept) { - if (TestFuncs(Kept)) + if (!Kept.empty() && TestFuncs(Kept)) return KeepSuffix; if (!Prefix.empty() && TestFuncs(Prefix)) return KeepPrefix;