diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-18 23:24:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-18 23:24:56 +0000 |
commit | ca005120082385026fd80fe76946fc446d3c9d33 (patch) | |
tree | 1cf3a98dda62e45dc06ece1429694c836551a214 /tools/bugpoint/OptimizerDriver.cpp | |
parent | 9cbbee332f3c4e3531cc8b13d6d8b427034c6a23 (diff) | |
download | external_llvm-ca005120082385026fd80fe76946fc446d3c9d33.zip external_llvm-ca005120082385026fd80fe76946fc446d3c9d33.tar.gz external_llvm-ca005120082385026fd80fe76946fc446d3c9d33.tar.bz2 |
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
Diffstat (limited to 'tools/bugpoint/OptimizerDriver.cpp')
-rw-r--r-- | tools/bugpoint/OptimizerDriver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bugpoint/OptimizerDriver.cpp b/tools/bugpoint/OptimizerDriver.cpp index 1d86828..d21b5b5 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(); |