[llvm-commits] CVS: llvm/tools/opt/opt.cpp
Chris Lattner
sabre at nondot.org
Sun May 6 12:17:41 PDT 2007
Changes in directory llvm/tools/opt:
opt.cpp updated: 1.140 -> 1.141
---
Log message:
make sure the ofstream for opt's output file is destroyed, so that the bits
actually land on disk.
---
Diffs of the changes: (+3 -0)
opt.cpp | 3 +++
1 files changed, 3 insertions(+)
Index: llvm/tools/opt/opt.cpp
diff -u llvm/tools/opt/opt.cpp:1.140 llvm/tools/opt/opt.cpp:1.141
--- llvm/tools/opt/opt.cpp:1.140 Sun May 6 04:32:02 2007
+++ llvm/tools/opt/opt.cpp Sun May 6 14:17:23 2007
@@ -365,6 +365,9 @@
// Now that we have all of the passes ready, run them.
Passes.run(*M.get());
+ // Delete the ofstream.
+ if (Out != &std::cout)
+ delete Out;
return 0;
} catch (const std::string& msg) {
More information about the llvm-commits
mailing list