From 5d3f1f01aa3106561a94e77fd60f2fd70c3fb955 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Mon, 4 Aug 2003 19:03:42 +0000 Subject: [PATCH] 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 --- tools/bugpoint/Miscompilation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1