From: Chris Lattner Date: Wed, 18 Feb 2004 23:24:56 +0000 (+0000) Subject: Don't crash if there are no passes in the PassesToRun list X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ca005120082385026fd80fe76946fc446d3c9d33;p=oota-llvm.git Don't crash if there are no passes in the PassesToRun list git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11612 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/bugpoint/OptimizerDriver.cpp b/tools/bugpoint/OptimizerDriver.cpp index 1d86828ba07..d21b5b59521 100644 --- a/tools/bugpoint/OptimizerDriver.cpp +++ b/tools/bugpoint/OptimizerDriver.cpp @@ -53,7 +53,7 @@ void BugDriver::EmitProgressBytecode(const std::string &ID, bool NoFlyer) { } 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();