commit | d614673bb8bee193341b3d516383be438915a9d4 | [log] [tgz] |
---|---|---|
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | Sun Nov 29 17:19:48 2009 +0000 |
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | Sun Nov 29 17:19:48 2009 +0000 |
tree | 2b9192a731c9ffb56a520e206adc9ded1f83e725 | |
parent | a76a7883b557c315f29dbf95155dd5ae0352fecf [diff] |
This patch ensures that Path::GetMainExecutable is able to handle the case where realpath() fails. When this occurs we segfault trying to create a std::string from a NULL pointer. Fixes PR5635. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90082 91177308-0d34-0410-b5e6-96231b3b80d8