[llvm-commits] [llvm] r90083 - /llvm/trunk/lib/System/Unix/Path.inc
Benjamin Kramer
benny.kra at googlemail.com
Sun Nov 29 09:42:58 PST 2009
Author: d0k
Date: Sun Nov 29 11:42:58 2009
New Revision: 90083
URL: http://llvm.org/viewvc/llvm-project?rev=90083&view=rev
Log:
Remove dead returns.
Modified:
llvm/trunk/lib/System/Unix/Path.inc
Modified: llvm/trunk/lib/System/Unix/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Unix/Path.inc?rev=90083&r1=90082&r2=90083&view=diff
==============================================================================
--- llvm/trunk/lib/System/Unix/Path.inc (original)
+++ llvm/trunk/lib/System/Unix/Path.inc Sun Nov 29 11:42:58 2009
@@ -350,7 +350,6 @@
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 @@
char link_path[MAXPATHLEN];
if (realpath(DLInfo.dli_fname, link_path))
return Path(std::string(link_path));
- return Path();
#endif
return Path();
}
More information about the llvm-commits
mailing list