Skip to content

Commit 556c9ff

Browse files
authored
Merge pull request #78620 from hjyamauchi/delete_pending
Handle delete_pending error code
2 parents 4ae5685 + 9ecb846 commit 556c9ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Index/IndexRecord.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ isFileUpToDateForOutputFile(StringRef filePath, StringRef timeCompareFilePath) {
458458
};
459459
llvm::sys::fs::file_status unitStat;
460460
if (std::error_code ec = llvm::sys::fs::status(filePath, unitStat)) {
461-
if (ec != std::errc::no_such_file_or_directory)
461+
if (ec != std::errc::no_such_file_or_directory && ec != llvm::errc::delete_pending)
462462
return makeError(filePath, ec);
463463
return false;
464464
}
@@ -469,7 +469,7 @@ isFileUpToDateForOutputFile(StringRef filePath, StringRef timeCompareFilePath) {
469469
llvm::sys::fs::file_status compareStat;
470470
if (std::error_code ec =
471471
llvm::sys::fs::status(timeCompareFilePath, compareStat)) {
472-
if (ec != std::errc::no_such_file_or_directory)
472+
if (ec != std::errc::no_such_file_or_directory && ec != llvm::errc::delete_pending)
473473
return makeError(timeCompareFilePath, ec);
474474
return true;
475475
}

0 commit comments

Comments
 (0)