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 @@ -242,7 +242,7 @@ std::optional<bool> IndexUnitWriter::isUnitUpToDateForOutputFile(
242
242
243
243
llvm::sys::fs::file_status UnitStat;
244
244
if (std::error_code EC = llvm::sys::fs::status (UnitPath.c_str (), UnitStat)) {
245
- if (EC != llvm::errc::no_such_file_or_directory) {
245
+ if (EC != llvm::errc::no_such_file_or_directory && EC != llvm::errc::delete_pending ) {
246
246
llvm::raw_string_ostream Err (Error);
247
247
Err << " could not access path '" << UnitPath
248
248
<< " ': " << EC.message ();
@@ -256,7 +256,7 @@ std::optional<bool> IndexUnitWriter::isUnitUpToDateForOutputFile(
256
256
257
257
llvm::sys::fs::file_status CompareStat;
258
258
if (std::error_code EC = llvm::sys::fs::status (*TimeCompareFilePath, CompareStat)) {
259
- if (EC != llvm::errc::no_such_file_or_directory) {
259
+ if (EC != llvm::errc::no_such_file_or_directory && EC != llvm::errc::delete_pending ) {
260
260
llvm::raw_string_ostream Err (Error);
261
261
Err << " could not access path '" << *TimeCompareFilePath
262
262
<< " ': " << EC.message ();
You can’t perform that action at this time.
0 commit comments