From 5cfff2545d5c731bb236d6e5c355bcb59d7abda7 Mon Sep 17 00:00:00 2001 From: John Criswell Date: Mon, 4 Aug 2003 18:24:31 +0000 Subject: [PATCH] Added code that ensures that we don't try to reduce an empty vector of basic blocks. This fixes the bugpoint regressions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7569 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 40854aa380d..852359a8c24 100644 --- a/tools/bugpoint/CrashDebugger.cpp +++ b/tools/bugpoint/CrashDebugger.cpp @@ -142,7 +142,7 @@ public: virtual TestResult doTest(std::vector &Prefix, std::vector &Kept) { - if (TestBlocks(Kept)) + if (!Kept.empty() && TestBlocks(Kept)) return KeepSuffix; if (!Prefix.empty() && TestBlocks(Prefix)) return KeepPrefix; -- 2.34.1