mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-20 05:38:50 +00:00
make sure the ofstream for opt's output file is destroyed, so that the bits
actually land on disk. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36877 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9e66233361
commit
d44ae90fc8
@ -365,6 +365,9 @@ int main(int argc, char **argv) {
|
|||||||
// Now that we have all of the passes ready, run them.
|
// Now that we have all of the passes ready, run them.
|
||||||
Passes.run(*M.get());
|
Passes.run(*M.get());
|
||||||
|
|
||||||
|
// Delete the ofstream.
|
||||||
|
if (Out != &std::cout)
|
||||||
|
delete Out;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
} catch (const std::string& msg) {
|
} catch (const std::string& msg) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user