diff options
Diffstat (limited to 'llvm/unittests/Support/Host.cpp')
-rw-r--r-- | llvm/unittests/Support/Host.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/Support/Host.cpp b/llvm/unittests/Support/Host.cpp index 736b04c2049..e07d4151bb6 100644 --- a/llvm/unittests/Support/Host.cpp +++ b/llvm/unittests/Support/Host.cpp @@ -185,12 +185,12 @@ TEST_F(HostTest, getMacOSHostVersion) { path::append(OutputFile, "out"); const char *SwVersPath = "/usr/bin/sw_vers"; - const char *argv[] = {SwVersPath, "-productVersion", nullptr}; + StringRef argv[] = {SwVersPath, "-productVersion"}; StringRef OutputPath = OutputFile.str(); const Optional<StringRef> Redirects[] = {/*STDIN=*/None, /*STDOUT=*/OutputPath, /*STDERR=*/None}; - int RetCode = ExecuteAndWait(SwVersPath, argv, /*env=*/nullptr, Redirects); + int RetCode = ExecuteAndWait(SwVersPath, argv, /*env=*/llvm::None, Redirects); ASSERT_EQ(0, RetCode); int FD = 0; |