diff --git a/llvm/unittests/Support/VirtualOutputBackendsTest.cpp b/llvm/unittests/Support/VirtualOutputBackendsTest.cpp index 3aee880a377df..03a4a9c3c7c32 100644 --- a/llvm/unittests/Support/VirtualOutputBackendsTest.cpp +++ b/llvm/unittests/Support/VirtualOutputBackendsTest.cpp @@ -559,9 +559,9 @@ Error OnDiskOutputBackendProvider::checkKept(StringRef FilePath, if (Error E = lookupFileInfo(FilePath, Info)) return E; +#ifndef _WIN32 sys::fs::UniqueID UID = shouldUseTemporaries(*Info) ? *Info->TempUID : *Info->UID; -#ifndef _WIN32 if (!Info->F->hasUniqueID(UID)) return createStringError(inconvertibleErrorCode(), "File not created by keep or changed UID");