diff --git a/llvm/unittests/CAS/OnDiskCASLoggerTest.cpp b/llvm/unittests/CAS/OnDiskCASLoggerTest.cpp index 3c60e29609330..a954f540bd555 100644 --- a/llvm/unittests/CAS/OnDiskCASLoggerTest.cpp +++ b/llvm/unittests/CAS/OnDiskCASLoggerTest.cpp @@ -159,12 +159,7 @@ TEST(OnDiskCASLoggerTest, MultiProcess) { SmallVector PIs; for (int I = 0; I < 5; ++I) { bool ExecutionFailed; - #ifndef _WIN32 auto PI = ExecuteNoWait(Executable, Argv, ArrayRef{}, {}, 0, &Error, - #else - // CreateProcessW will fail with zero-length env on Windows - auto PI = ExecuteNoWait(Executable, Argv, std::nullopt, {}, 0, &Error, - #endif &ExecutionFailed); ASSERT_FALSE(ExecutionFailed) << Error; PIs.push_back(std::move(PI));