summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2003-08-04 18:24:31 +0000
committerJohn Criswell <criswell@uiuc.edu>2003-08-04 18:24:31 +0000
commit5cfff2545d5c731bb236d6e5c355bcb59d7abda7 (patch)
tree0a1926cc49a155714ba3983751fc4419c258661b /tools
parente5bb2d94d95e6be18ed74204e47d22553ec8bfbc (diff)
downloadllvm-5cfff2545d5c731bb236d6e5c355bcb59d7abda7.tar.gz
llvm-5cfff2545d5c731bb236d6e5c355bcb59d7abda7.tar.bz2
llvm-5cfff2545d5c731bb236d6e5c355bcb59d7abda7.tar.xz
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
Diffstat (limited to 'tools')
-rw-r--r--tools/bugpoint/CrashDebugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp
index 40854aa380..852359a8c2 100644
--- a/tools/bugpoint/CrashDebugger.cpp
+++ b/tools/bugpoint/CrashDebugger.cpp
@@ -142,7 +142,7 @@ public:
virtual TestResult doTest(std::vector<BasicBlock*> &Prefix,
std::vector<BasicBlock*> &Kept) {
- if (TestBlocks(Kept))
+ if (!Kept.empty() && TestBlocks(Kept))
return KeepSuffix;
if (!Prefix.empty() && TestBlocks(Prefix))
return KeepPrefix;