diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-05-14 19:11:40 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-05-14 19:11:40 +0000 |
| commit | 90abfe4bd99e39c4aa0e729a3867b4d12fd3184c (patch) | |
| tree | adc2fb3ecf99e9608dee2978950a74a1e9fc56bb | |
| parent | a782bbe827329e1f1de31874d1f11f9bae1f686e (diff) | |
| download | bcm5719-llvm-90abfe4bd99e39c4aa0e729a3867b4d12fd3184c.tar.gz bcm5719-llvm-90abfe4bd99e39c4aa0e729a3867b4d12fd3184c.zip | |
Fix a bug found by inspection.
llvm-svn: 28297
| -rw-r--r-- | llvm/tools/bugpoint/OptimizerDriver.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/OptimizerDriver.cpp b/llvm/tools/bugpoint/OptimizerDriver.cpp index 7cfc4fb4994..37e2f74f45d 100644 --- a/llvm/tools/bugpoint/OptimizerDriver.cpp +++ b/llvm/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; } |

