Improve sys::Path::makeAbsolute on Win32.

- Patch by Viktor Kutuzov!

 - Minor tweak by me to add llvm_unreachable calls on FIXMEd error paths.

llvm-svn: 75424
This commit is contained in:
Daniel Dunbar
2009-07-12 20:23:56 +00:00
parent 08954aa4e1
commit df555fd6f8
4 changed files with 38 additions and 13 deletions

View File

@@ -51,7 +51,7 @@ sys::Path llvm::FindExecutable(const std::string &ExeName,
// Otherwise check the directory that the calling program is in. We can do
// this if ProgramPath contains at least one / character, indicating that it
// is a relative path to bugpoint itself.
// is a relative path to the executable itself.
Result = ProgramPath;
Result.eraseComponent();
if (!Result.isEmpty()) {