OSDN Git Service

Merging r338841:
authorHans Wennborg <hans@hanshq.net>
Fri, 17 Aug 2018 14:28:33 +0000 (14:28 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 17 Aug 2018 14:28:33 +0000 (14:28 +0000)
commit98aa61ba49b54902a7afc27c9aa6c562646be76f
treef1f21953d25d59200f0ee2e4eb643cbc4cc95207
parentdff83e99c9120289d8da0cbd89ab0b9ddd3e8971
Merging r338841:
------------------------------------------------------------------------
r338841 | jmorse | 2018-08-03 12:13:35 +0200 (Fri, 03 Aug 2018) | 11 lines

[Windows FS] Allow moving files in TempFile::keep

In r338216 / D49860 TempFile::keep was extended to allow keeping across
filesystems. The aim on Windows was to have this happen in rename_internal
using the existing system API. However, to fix an issue and preserve the
idea of "renaming" not being a move, put Windows keep-across-filesystem in
TempFile::keep.

Differential Revision: https://reviews.llvm.org/D50048

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_70@340030 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Path.cpp
lib/Support/Windows/Path.inc