diff options
author | Petr Hosek <phosek@chromium.org> | 2017-06-16 22:40:18 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2017-06-16 22:40:18 +0000 |
commit | 8f90efe3469d6fb991cef73bc4b189bce7328ec2 (patch) | |
tree | 0aa2b041e6e44042d71d00f82b7fa46841283c38 /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 274bcbc139463b72d949cd32b972b3721c99f4be (diff) | |
download | llvm-8f90efe3469d6fb991cef73bc4b189bce7328ec2.zip llvm-8f90efe3469d6fb991cef73bc4b189bce7328ec2.tar.gz llvm-8f90efe3469d6fb991cef73bc4b189bce7328ec2.tar.bz2 |
[Driver] Do a PATH lookup if needed when using -no-canonical-prefixes
When -no-canonical-prefixes option is used and argv0 contains only
a program name, we need to do a PATH lookup to get an executable path,
otherwise the return value won't be a valid path and any subsequent
uses of it (e.g. when invoking -cc1) will fail with an error.
This patch fixes PR9576.
Differential Revision: https://reviews.llvm.org/D34290
llvm-svn: 305600
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions