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:
9e66233
)
make sure the ofstream for opt's output file is destroyed, so that the bits
author
Chris Lattner
<sabre@nondot.org>
Sun, 6 May 2007 19:17:23 +0000
(19:17 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 6 May 2007 19:17:23 +0000
(19:17 +0000)
actually land on disk.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36877
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/opt/opt.cpp
patch
|
blob
|
history
diff --git
a/tools/opt/opt.cpp
b/tools/opt/opt.cpp
index 99249b9442cf0142d8da87f0ee4866d56ceb5d8f..4ef1a6e39c7fdfdbec9b4676dd9c538a90eb2313 100644
(file)
--- a/
tools/opt/opt.cpp
+++ b/
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) {