diff options
Diffstat (limited to 'tools/bugpoint/ToolRunner.cpp')
| -rw-r--r-- | tools/bugpoint/ToolRunner.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp index 70b18e3dbbf9..8094dfdd78fa 100644 --- a/tools/bugpoint/ToolRunner.cpp +++ b/tools/bugpoint/ToolRunner.cpp @@ -58,7 +58,7 @@ static int RunProgramWithTimeout(StringRef ProgramPath, const char **Args,                                   StringRef StdErrFile, unsigned NumSeconds = 0,                                   unsigned MemoryLimit = 0,                                   std::string *ErrMsg = nullptr) { -  const StringRef *Redirects[3] = {&StdInFile, &StdOutFile, &StdErrFile}; +  Optional<StringRef> Redirects[3] = {StdInFile, StdOutFile, StdErrFile};    return sys::ExecuteAndWait(ProgramPath, Args, nullptr, Redirects, NumSeconds,                               MemoryLimit, ErrMsg);  } @@ -75,7 +75,7 @@ static int RunProgramRemotelyWithTimeout(StringRef RemoteClientPath,                                           StringRef StdErrFile,                                           unsigned NumSeconds = 0,                                           unsigned MemoryLimit = 0) { -  const StringRef *Redirects[3] = {&StdInFile, &StdOutFile, &StdErrFile}; +  Optional<StringRef> Redirects[3] = {StdInFile, StdOutFile, StdErrFile};    // Run the program remotely with the remote client    int ReturnCode = sys::ExecuteAndWait(RemoteClientPath, Args, nullptr,  | 
