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

Chris Lattner lattner at cs.uiuc.edu
Wed Feb 18 17:31:04 PST 2004


Changes in directory llvm/tools/bugpoint:

OptimizerDriver.cpp updated: 1.17 -> 1.18

---
Log message:

Don't crash if there are no passes in the PassesToRun list


---
Diffs of the changes:  (+1 -1)

Index: llvm/tools/bugpoint/OptimizerDriver.cpp
diff -u llvm/tools/bugpoint/OptimizerDriver.cpp:1.17 llvm/tools/bugpoint/OptimizerDriver.cpp:1.18
--- llvm/tools/bugpoint/OptimizerDriver.cpp:1.17	Tue Jan 13 21:38:37 2004
+++ llvm/tools/bugpoint/OptimizerDriver.cpp	Wed Feb 18 17:24:56 2004
@@ -53,7 +53,7 @@
   }
 
   std::cout << "Emitted bytecode to '" << Filename << "'\n";
-  if (NoFlyer) return;
+  if (NoFlyer || PassesToRun.empty()) return;
   std::cout << "\n*** You can reproduce the problem with: ";
 
   unsigned PassType = PassesToRun[0]->getPassType();





More information about the llvm-commits mailing list