mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +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:
parent
d614673bb8
commit
18eaefd25e
@ -350,7 +350,6 @@ Path Path::GetMainExecutable(const char *argv0, void *MainAddr) {
|
||||
char link_path[MAXPATHLEN];
|
||||
if (realpath(exe_path, link_path))
|
||||
return Path(std::string(link_path));
|
||||
return Path();
|
||||
}
|
||||
#elif defined(__FreeBSD__)
|
||||
char exe_path[PATH_MAX];
|
||||
@ -374,7 +373,6 @@ Path Path::GetMainExecutable(const char *argv0, void *MainAddr) {
|
||||
char link_path[MAXPATHLEN];
|
||||
if (realpath(DLInfo.dli_fname, link_path))
|
||||
return Path(std::string(link_path));
|
||||
return Path();
|
||||
#endif
|
||||
return Path();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user