diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-04-10 17:27:58 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-04-10 17:27:58 +0000 |
commit | 0aa128e219131558a4dbbcfa02315486069b3b91 (patch) | |
tree | 5bc84d178b67a11e542dcf1499e70d22366bd303 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | d03f9f4016b90d835e28ccd11b490b81e9428b9d (diff) | |
download | llvm-0aa128e219131558a4dbbcfa02315486069b3b91.zip llvm-0aa128e219131558a4dbbcfa02315486069b3b91.tar.gz llvm-0aa128e219131558a4dbbcfa02315486069b3b91.tar.bz2 |
[Frontend] Close open file handles before renaming output files
The placement of the 'delete' call that was removed in the unique_ptr
migration in r234597 was not an accident. The raw_ostream has to be
destroyed before you do the rename on Windows, otherwise you get
ERROR_ACCESS_DENIED. We can still use unique_ptr, we just need to do a
manual reset().
Also, range-for-loop-ify this code.
llvm-svn: 234612
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions