[llvm-commits] CVS: llvm/tools/bugpoint/OptimizerDriver.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun May 14 12:11:54 PDT 2006
Changes in directory llvm/tools/bugpoint:
OptimizerDriver.cpp updated: 1.37 -> 1.38
---
Log message:
Fix a bug found by inspection.
---
Diffs of the changes: (+5 -1)
OptimizerDriver.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)
Index: llvm/tools/bugpoint/OptimizerDriver.cpp
diff -u llvm/tools/bugpoint/OptimizerDriver.cpp:1.37 llvm/tools/bugpoint/OptimizerDriver.cpp:1.38
--- llvm/tools/bugpoint/OptimizerDriver.cpp:1.37 Thu Jan 26 12:37:21 2006
+++ llvm/tools/bugpoint/OptimizerDriver.cpp Sun May 14 14:11:40 2006
@@ -52,7 +52,11 @@
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;
}
More information about the llvm-commits
mailing list