diff options
| author | Misha Brukman <brukman+llvm@gmail.com> | 2003-08-04 19:03:42 +0000 |
|---|---|---|
| committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-08-04 19:03:42 +0000 |
| commit | 5d3f1f01aa3106561a94e77fd60f2fd70c3fb955 (patch) | |
| tree | be954f1b15eef4b1505426361591b65b43b165a7 /tools/bugpoint/Miscompilation.cpp | |
| parent | 5cfff2545d5c731bb236d6e5c355bcb59d7abda7 (diff) | |
Do not attempt to reduce a test case if it is an empty set.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/Miscompilation.cpp')
| -rw-r--r-- | tools/bugpoint/Miscompilation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp index b65b4a6a67..968a34e6c9 100644 --- a/tools/bugpoint/Miscompilation.cpp +++ b/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; |
