forked from OSchip/llvm-project
make sure the ofstream for opt's output file is destroyed, so that the bits
actually land on disk. llvm-svn: 36877
This commit is contained in:
parent
4211c20988
commit
9b4a428978
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue