diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-06 19:17:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-06 19:17:23 +0000 |
commit | 9b4a428978272fbb5200ee1378244846d7ef56d5 (patch) | |
tree | 3f5f6f8d39c618621d90d609ad0096271deaa921 | |
parent | 4211c2098886d40dfd9ec4dcb5b081a31607ec80 (diff) | |
download | bcm5719-llvm-9b4a428978272fbb5200ee1378244846d7ef56d5.tar.gz bcm5719-llvm-9b4a428978272fbb5200ee1378244846d7ef56d5.zip |
make sure the ofstream for opt's output file is destroyed, so that the bits
actually land on disk.
llvm-svn: 36877
-rw-r--r-- | llvm/tools/opt/opt.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp index 99249b9442c..4ef1a6e39c7 100644 --- a/llvm/tools/opt/opt.cpp +++ b/llvm/tools/opt/opt.cpp @@ -365,6 +365,9 @@ int main(int argc, char **argv) { // 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) { |