forked from OSchip/llvm-project
Fix typo in lib/Support/Path.cpp to test commit access
llvm-svn: 336216
This commit is contained in:
parent
8307bc407b
commit
beb9d9799f
|
@ -1147,7 +1147,7 @@ Error TempFile::keep(const Twine &Name) {
|
||||||
Done = true;
|
Done = true;
|
||||||
// Always try to close and rename.
|
// Always try to close and rename.
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// If we cant't cancel the delete don't rename.
|
// If we can't cancel the delete don't rename.
|
||||||
auto H = reinterpret_cast<HANDLE>(_get_osfhandle(FD));
|
auto H = reinterpret_cast<HANDLE>(_get_osfhandle(FD));
|
||||||
std::error_code RenameEC = setDeleteDisposition(H, false);
|
std::error_code RenameEC = setDeleteDisposition(H, false);
|
||||||
if (!RenameEC)
|
if (!RenameEC)
|
||||||
|
|
Loading…
Reference in New Issue