From 0e9d9b51ebfdc0a4575077b7f350712cde1e9e05 Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Thu, 28 Oct 2010 19:32:53 +0000 Subject: [PATCH] Trailing whitespace. llvm-svn: 117581 --- llvm/lib/System/Unix/Program.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/lib/System/Unix/Program.inc b/llvm/lib/System/Unix/Program.inc index bbb029c4f3ec..110a6d14f486 100644 --- a/llvm/lib/System/Unix/Program.inc +++ b/llvm/lib/System/Unix/Program.inc @@ -196,7 +196,7 @@ Program::Execute(const Path &path, const char **args, const char **envp, *redirects[1] != *redirects[2]) { // Just redirect stderr if (RedirectIO_PS(redirects[2], 2, ErrMsg, FileActions)) return false; - } else { + } else { // If stdout and stderr should go to the same place, redirect stderr // to the FD already open for stdout. if (int Err = posix_spawn_file_actions_adddup2(&FileActions, 1, 2)) @@ -217,17 +217,17 @@ Program::Execute(const Path &path, const char **args, const char **envp, pid_t PID = 0; int Err = posix_spawn(&PID, path.c_str(), &FileActions, /*attrp*/0, const_cast(args), const_cast(envp)); - + posix_spawn_file_actions_destroy(&FileActions); if (Err) return !MakeErrMsg(ErrMsg, "posix_spawn failed", Err); - + Data_ = reinterpret_cast(PID); return true; } #endif - + if (!path.canExecute()) { if (ErrMsg) *ErrMsg = path.str() + " is not executable";