mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-06 01:24:35 +00:00
Remove dead returns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90083 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -350,7 +350,6 @@ Path Path::GetMainExecutable(const char *argv0, void *MainAddr) {
|
|||||||
char link_path[MAXPATHLEN];
|
char link_path[MAXPATHLEN];
|
||||||
if (realpath(exe_path, link_path))
|
if (realpath(exe_path, link_path))
|
||||||
return Path(std::string(link_path));
|
return Path(std::string(link_path));
|
||||||
return Path();
|
|
||||||
}
|
}
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__)
|
||||||
char exe_path[PATH_MAX];
|
char exe_path[PATH_MAX];
|
||||||
@ -374,7 +373,6 @@ Path Path::GetMainExecutable(const char *argv0, void *MainAddr) {
|
|||||||
char link_path[MAXPATHLEN];
|
char link_path[MAXPATHLEN];
|
||||||
if (realpath(DLInfo.dli_fname, link_path))
|
if (realpath(DLInfo.dli_fname, link_path))
|
||||||
return Path(std::string(link_path));
|
return Path(std::string(link_path));
|
||||||
return Path();
|
|
||||||
#endif
|
#endif
|
||||||
return Path();
|
return Path();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user