Bot: http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-incremental/42421
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313163
91177308-0d34-0410-b5e6-
96231b3b80d8
const char *SwVersPath = "/usr/bin/sw_vers";
const char *argv[] = {SwVersPath, "-productVersion", nullptr};
StringRef OutputPath = OutputFile.str();
- const StringRef *Redirects[] = {/*STDIN=*/nullptr, /*STDOUT=*/&OutputPath,
- /*STDERR=*/nullptr};
+ const Optional<StringRef> Redirects[] = {/*STDIN=*/None,
+ /*STDOUT=*/OutputPath,
+ /*STDERR=*/None};
int RetCode = ExecuteAndWait(SwVersPath, argv, /*env=*/nullptr, Redirects);
ASSERT_EQ(0, RetCode);