From 689398fe76c7881c5a28ae9eab8ad1ebba7fc1ea Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Tue, 5 Aug 2003 15:26:21 +0000 Subject: Only test the vector of functions if it is non-empty. llvm-svn: 7594 --- llvm/tools/bugpoint/CrashDebugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/bugpoint/CrashDebugger.cpp') diff --git a/llvm/tools/bugpoint/CrashDebugger.cpp b/llvm/tools/bugpoint/CrashDebugger.cpp index 852359a8c24..872725593e2 100644 --- a/llvm/tools/bugpoint/CrashDebugger.cpp +++ b/llvm/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; -- cgit v1.2.3