mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-13 08:26:02 +00:00
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
This commit is contained in:
@@ -53,7 +53,7 @@ void BugDriver::EmitProgressBytecode(const std::string &ID, bool NoFlyer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::cout << "Emitted bytecode to '" << Filename << "'\n";
|
std::cout << "Emitted bytecode to '" << Filename << "'\n";
|
||||||
if (NoFlyer) return;
|
if (NoFlyer || PassesToRun.empty()) return;
|
||||||
std::cout << "\n*** You can reproduce the problem with: ";
|
std::cout << "\n*** You can reproduce the problem with: ";
|
||||||
|
|
||||||
unsigned PassType = PassesToRun[0]->getPassType();
|
unsigned PassType = PassesToRun[0]->getPassType();
|
||||||
|
Reference in New Issue
Block a user