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

Chris Lattner lattner at cs.uiuc.edu
Mon Oct 13 16:05:00 PDT 2003


Changes in directory llvm/tools/bugpoint:

BugDriver.cpp updated: 1.15 -> 1.16

---
Log message:

Unbreak code generator debug mode


---
Diffs of the changes:  (+5 -3)

Index: llvm/tools/bugpoint/BugDriver.cpp
diff -u llvm/tools/bugpoint/BugDriver.cpp:1.15 llvm/tools/bugpoint/BugDriver.cpp:1.16
--- llvm/tools/bugpoint/BugDriver.cpp:1.15	Wed Sep 17 00:00:07 2003
+++ llvm/tools/bugpoint/BugDriver.cpp	Mon Oct 13 16:04:26 2003
@@ -128,9 +128,11 @@
   // a bytecode file, then we know the compiler didn't crash, so try to diagnose
   // a miscompilation.
   //
-  std::cout << "Running selected passes on program to test for crash: ";
-  if (runPasses(PassesToRun))
-    return debugCrash();
+  if (!PassesToRun.empty()) {
+    std::cout << "Running selected passes on program to test for crash: ";
+    if (runPasses(PassesToRun))
+      return debugCrash();
+  }
 
   std::cout << "Checking for a miscompilation...\n";
 





More information about the llvm-commits mailing list