diff options
| author | Sam McCall <sam.mccall@gmail.com> | 2019-07-02 15:42:37 +0000 |
|---|---|---|
| committer | Sam McCall <sam.mccall@gmail.com> | 2019-07-02 15:42:37 +0000 |
| commit | edf904efff6f188aa077ce3940d26dcef6f74ac6 (patch) | |
| tree | fba5e34eb7335e5ca05cff7bae498f2179716fcb /llvm/lib/Support/Unix/Program.inc | |
| parent | c3d5bbee23395730fcbe557a18108b8713d41328 (diff) | |
| download | bcm5719-llvm-edf904efff6f188aa077ce3940d26dcef6f74ac6.tar.gz bcm5719-llvm-edf904efff6f188aa077ce3940d26dcef6f74ac6.zip | |
getMainExecutable: handle realpath() failure, falling back to getprogpath().
Summary:
Previously, we'd pass a nullptr to std::string and crash().
This case happens when the binary is deleted while being used (e.g. rebuilding clangd).
Reviewers: kadircet
Subscribers: ilya-biryukov, kristina, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D64068
llvm-svn: 364936
Diffstat (limited to 'llvm/lib/Support/Unix/Program.inc')
0 files changed, 0 insertions, 0 deletions

