aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Path.cpp
diff options
context:
space:
mode:
authorAmy Huang <akhuang@google.com>2021-06-01 19:51:47 -0700
committerAmy Huang <akhuang@google.com>2021-06-01 19:51:47 -0700
commit20797b129f844d4b12ffb2b12cf33baa2d42985c (patch)
treec0895e0ec1782c99c3b787f1a280a10fd980917f /llvm/lib/Support/Path.cpp
parentae4dad2b731eefce5f65ed1a74510563ffe64c0f (diff)
downloadllvm-20797b129f844d4b12ffb2b12cf33baa2d42985c.zip
llvm-20797b129f844d4b12ffb2b12cf33baa2d42985c.tar.gz
llvm-20797b129f844d4b12ffb2b12cf33baa2d42985c.tar.bz2
Revert "Fix tmp files being left on Windows builds." for now;
causing some asan test failures. This reverts commit 7daa18215905c831e130c7542f17619e9d936dfc.
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r--llvm/lib/Support/Path.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp
index d549b00..005c27c3 100644
--- a/llvm/lib/Support/Path.cpp
+++ b/llvm/lib/Support/Path.cpp
@@ -1229,7 +1229,7 @@ Error TempFile::keep(const Twine &Name) {
auto H = reinterpret_cast<HANDLE>(_get_osfhandle(FD));
std::error_code RenameEC = setDeleteDisposition(H, false);
if (!RenameEC) {
- RenameEC = rename_handle(H, Name);
+ RenameEC = rename_fd(FD, Name);
// If rename failed because it's cross-device, copy instead
if (RenameEC ==
std::error_code(ERROR_NOT_SAME_DEVICE, std::system_category())) {