summaryrefslogtreecommitdiff
path: root/lib/System/Program.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-29 16:54:25 +0000
committerDan Gohman <gohman@apple.com>2010-10-29 16:54:25 +0000
commite5f77cda25169fcbadc32f0f0b3da2e00ba86b7c (patch)
tree69ac8f68d8338ead3821fe230376627d5d36f6f8 /lib/System/Program.cpp
parentd8d716fad3eefce98fac5a76a70250d89fcf9a20 (diff)
downloadllvm-e5f77cda25169fcbadc32f0f0b3da2e00ba86b7c.tar.gz
llvm-e5f77cda25169fcbadc32f0f0b3da2e00ba86b7c.tar.bz2
llvm-e5f77cda25169fcbadc32f0f0b3da2e00ba86b7c.tar.xz
Make Program::Wait differentiate execution failure due to the file
being not found from the file being not executable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117664 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Program.cpp')
-rw-r--r--lib/System/Program.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Program.cpp b/lib/System/Program.cpp
index cd58c2cc57..90aba763fa 100644
--- a/lib/System/Program.cpp
+++ b/lib/System/Program.cpp
@@ -31,7 +31,7 @@ Program::ExecuteAndWait(const Path& path,
std::string* ErrMsg) {
Program prg;
if (prg.Execute(path, args, envp, redirects, memoryLimit, ErrMsg))
- return prg.Wait(secondsToWait, ErrMsg);
+ return prg.Wait(path, secondsToWait, ErrMsg);
else
return -1;
}