diff options
Diffstat (limited to 'lib/Support/SystemUtils.cpp')
-rw-r--r-- | lib/Support/SystemUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/SystemUtils.cpp b/lib/Support/SystemUtils.cpp index 77c97f3111..88c3515920 100644 --- a/lib/Support/SystemUtils.cpp +++ b/lib/Support/SystemUtils.cpp @@ -45,9 +45,9 @@ sys::Path llvm::FindExecutable(const std::string &ExeName, // if ProgramPath contains at least one / character, indicating that it is a // relative path to bugpoint itself. sys::Path Result ( ProgramPath ); - Result.elideFile(); + Result.eraseComponent(); if (!Result.isEmpty()) { - Result.appendFile(ExeName); + Result.appendComponent(ExeName); if (Result.canExecute()) return Result; } |