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:
c3bb700
)
Fix a bug found by inspection.
author
Chris Lattner
<sabre@nondot.org>
Sun, 14 May 2006 19:11:40 +0000
(19:11 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 14 May 2006 19:11:40 +0000
(19:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28297
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 7cfc4fb49947168d2d8376c3da4c607f39a32b6c..37e2f74f45d152cec76e126888aa9bbfee3510ad 100644
(file)
--- a/
tools/bugpoint/OptimizerDriver.cpp
+++ b/
tools/bugpoint/OptimizerDriver.cpp
@@
-52,7
+52,11
@@
bool BugDriver::writeProgramToFile(const std::string &Filename,
std::ios::binary;
std::ofstream Out(Filename.c_str(), io_mode);
if (!Out.good()) return true;
- WriteBytecodeToFile(M ? M : Program, Out, /*compression=*/true);
+ try {
+ WriteBytecodeToFile(M ? M : Program, Out, /*compression=*/true);
+ } catch (...) {
+ return true;
+ }
return false;
}