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

llvm-svn: 11612
This commit is contained in:
Chris Lattner 2004-02-18 23:24:56 +00:00
parent 8d05ebc2f9
commit 36d48a3728
1 changed files with 1 additions and 1 deletions

View File

@ -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();