diff options
author | John Criswell <criswell@uiuc.edu> | 2003-08-04 18:24:31 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2003-08-04 18:24:31 +0000 |
commit | fe69bc502d10ed5b60bfc9cbcd51c4fba32f6be6 (patch) | |
tree | 8457702f77bcb3d8a678bc23332c9c9c634666ca | |
parent | 22c550e4426fe38311644f684de7aee54d5fafc8 (diff) | |
download | bcm5719-llvm-fe69bc502d10ed5b60bfc9cbcd51c4fba32f6be6.tar.gz bcm5719-llvm-fe69bc502d10ed5b60bfc9cbcd51c4fba32f6be6.zip |
Added code that ensures that we don't try to reduce an empty vector of basic
blocks.
This fixes the bugpoint regressions.
llvm-svn: 7569
-rw-r--r-- | llvm/tools/bugpoint/CrashDebugger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/CrashDebugger.cpp b/llvm/tools/bugpoint/CrashDebugger.cpp index 40854aa380d..852359a8c24 100644 --- a/llvm/tools/bugpoint/CrashDebugger.cpp +++ b/llvm/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; |