[llvm-commits] CVS: llvm/tools/bugpoint/CrashDebugger.cpp

John Criswell criswell at cs.uiuc.edu
Mon Aug 4 13:25:01 PDT 2003


Changes in directory llvm/tools/bugpoint:

CrashDebugger.cpp updated: 1.11 -> 1.12

---
Log message:

Added code that ensures that we don't try to reduce an empty vector of basic
blocks.
This fixes the bugpoint regressions.


---
Diffs of the changes:

Index: llvm/tools/bugpoint/CrashDebugger.cpp
diff -u llvm/tools/bugpoint/CrashDebugger.cpp:1.11 llvm/tools/bugpoint/CrashDebugger.cpp:1.12
--- llvm/tools/bugpoint/CrashDebugger.cpp:1.11	Tue Jun 24 23:13:52 2003
+++ llvm/tools/bugpoint/CrashDebugger.cpp	Mon Aug  4 13:24:31 2003
@@ -142,7 +142,7 @@
     
   virtual TestResult doTest(std::vector<BasicBlock*> &Prefix,
                             std::vector<BasicBlock*> &Kept) {
-    if (TestBlocks(Kept))
+    if (!Kept.empty() && TestBlocks(Kept))
       return KeepSuffix;
     if (!Prefix.empty() && TestBlocks(Prefix))
       return KeepPrefix;





More information about the llvm-commits mailing list