Use the FindProgramByName fallback only with known absolute paths.
authorDan Gohman <gohman@apple.com>
Thu, 2 Sep 2010 22:32:38 +0000 (22:32 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 2 Sep 2010 22:32:38 +0000 (22:32 +0000)
commit776339ee273c55beb3073a6dee5a8d34e4c34493
tree7a0279508afb4748c669fb69907114e9c5d8d600
parent514ca3a021ea0aa421ac4163e553364514fe651c
Use the FindProgramByName fallback only with known absolute paths.
I wasn't able to convince myself that all GetMainExecutable
implementations always return absolute paths; this prevents
unexpected behavior in case they ever don't.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112888 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/SystemUtils.cpp