summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/Miscompilation.cpp
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-08-04 19:03:42 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-08-04 19:03:42 +0000
commit4aad821408a1d0e088b526822d5da4e480185737 (patch)
tree5fd75093e1fe013ca8999eabd934ba195a6cf009 /llvm/tools/bugpoint/Miscompilation.cpp
parentfe69bc502d10ed5b60bfc9cbcd51c4fba32f6be6 (diff)
downloadbcm5719-llvm-4aad821408a1d0e088b526822d5da4e480185737.tar.gz
bcm5719-llvm-4aad821408a1d0e088b526822d5da4e480185737.zip
Do not attempt to reduce a test case if it is an empty set.
llvm-svn: 7570
Diffstat (limited to 'llvm/tools/bugpoint/Miscompilation.cpp')
-rw-r--r--llvm/tools/bugpoint/Miscompilation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp
index b65b4a6a678..968a34e6c9f 100644
--- a/llvm/tools/bugpoint/Miscompilation.cpp
+++ b/llvm/tools/bugpoint/Miscompilation.cpp
@@ -114,7 +114,7 @@ public:
virtual TestResult doTest(std::vector<Function*> &Prefix,
std::vector<Function*> &Suffix) {
- if (TestFuncs(Suffix, false))
+ if (!Suffix.empty() && TestFuncs(Suffix, false))
return KeepSuffix;
if (!Prefix.empty() && TestFuncs(Prefix, false))
return KeepPrefix;
OpenPOWER on IntegriCloud