Fix typo in lib/Support/Path.cpp to test commit access

llvm-svn: 336216
This commit is contained in:
Vladimir Stefanovic 2018-07-03 17:26:43 +00:00
parent 8307bc407b
commit beb9d9799f
1 changed files with 1 additions and 1 deletions

View File

@ -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)