From: Misha Brukman Date: Mon, 4 Aug 2003 19:03:42 +0000 (+0000) Subject: Do not attempt to reduce a test case if it is an empty set. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5d3f1f01aa3106561a94e77fd60f2fd70c3fb955;p=oota-llvm.git 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 --- diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp index b65b4a6a678..968a34e6c9f 100644 --- a/tools/bugpoint/Miscompilation.cpp +++ b/tools/bugpoint/Miscompilation.cpp @@ -114,7 +114,7 @@ public: virtual TestResult doTest(std::vector &Prefix, std::vector &Suffix) { - if (TestFuncs(Suffix, false)) + if (!Suffix.empty() && TestFuncs(Suffix, false)) return KeepSuffix; if (!Prefix.empty() && TestFuncs(Prefix, false)) return KeepPrefix;