summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitfc81579b5e10b1c627c1bdbd9d1d035868cf11ee (patch)
treebc10e40064cbd10a57f8aa991b420046046e4f02 /llvm/lib/System/Program.cpp
parent305ec65927b64b9b35406c6680d0751df29b36c2 (diff)
downloadbcm5719-llvm-fc81579b5e10b1c627c1bdbd9d1d035868cf11ee.tar.gz
bcm5719-llvm-fc81579b5e10b1c627c1bdbd9d1d035868cf11ee.zip
Make Program::Wait differentiate execution failure due to the file
being not found from the file being not executable. llvm-svn: 117664
Diffstat (limited to 'llvm/lib/System/Program.cpp')
-rw-r--r--llvm/lib/System/Program.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Program.cpp b/llvm/lib/System/Program.cpp
index cd58c2cc578..90aba763fa9 100644
--- a/llvm/lib/System/Program.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud