mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Improve sys::Path::makeAbsolute on Win32.
- Patch by Viktor Kutuzov! - Minor tweak by me to add llvm_unreachable calls on FIXMEd error paths. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75424 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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()) {
|
||||
|
Reference in New Issue
Block a user