From: John Criswell Date: Mon, 4 Aug 2003 18:24:31 +0000 (+0000) Subject: Added code that ensures that we don't try to reduce an empty vector of basic X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5cfff2545d5c731bb236d6e5c355bcb59d7abda7;p=oota-llvm.git 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 --- 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;