diff options
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index db084262e9..df71c97215 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -920,15 +920,8 @@ llvm::sys::Path Driver::GetProgramPath(const char *Name, return P; } - // As a last resort, always search in our directory before pulling - // from the path. - llvm::sys::Path P(Dir); - P.appendComponent(Name); - if (P.exists()) - return P; - - // Search path to increase accuracy of logging output. - P = llvm::sys::Program::FindProgramByName(Name); + // If all else failed, search the path. + llvm::sys::Path P(llvm::sys::Program::FindProgramByName(Name)); if (!P.empty()) return P; |