1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Do not attempt to reduce a test case if it is an empty set.

llvm-svn: 7570
This commit is contained in:
Misha Brukman 2003-08-04 19:03:42 +00:00
parent 4f1ed9c65b
commit a326e31a1c

View File

@ -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;