projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cbbee3
)
Don't crash if there are no passes in the PassesToRun list
author
Chris Lattner
<sabre@nondot.org>
Wed, 18 Feb 2004 23:24:56 +0000
(23:24 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 18 Feb 2004 23:24:56 +0000
(23:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11612
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/bugpoint/OptimizerDriver.cpp
patch
|
blob
|
history
diff --git
a/tools/bugpoint/OptimizerDriver.cpp
b/tools/bugpoint/OptimizerDriver.cpp
index 1d86828ba07b02558fae2c0c2679790068eeb92b..d21b5b59521358c05465b347b03eb47a12cf1337 100644
(file)
--- 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();