File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ std::optional<bool> IndexUnitWriter::isUnitUpToDateForOutputFile(
245
245
246
246
llvm::sys::fs::file_status UnitStat;
247
247
if (std::error_code EC = llvm::sys::fs::status (UnitPath.c_str (), UnitStat)) {
248
- if (EC != llvm::errc::no_such_file_or_directory) {
248
+ if (EC != llvm::errc::no_such_file_or_directory && EC != llvm::errc::delete_pending ) {
249
249
llvm::raw_string_ostream Err (Error);
250
250
Err << " could not access path '" << UnitPath
251
251
<< " ': " << EC.message ();
@@ -259,7 +259,7 @@ std::optional<bool> IndexUnitWriter::isUnitUpToDateForOutputFile(
259
259
260
260
llvm::sys::fs::file_status CompareStat;
261
261
if (std::error_code EC = llvm::sys::fs::status (*TimeCompareFilePath, CompareStat)) {
262
- if (EC != llvm::errc::no_such_file_or_directory) {
262
+ if (EC != llvm::errc::no_such_file_or_directory && EC != llvm::errc::delete_pending ) {
263
263
llvm::raw_string_ostream Err (Error);
264
264
Err << " could not access path '" << *TimeCompareFilePath
265
265
<< " ': " << EC.message ();
You can’t perform that action at this time.
0 commit comments