From 18eaefd25e398bdda58d581c4d0a780a63524cb1 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 29 Nov 2009 17:42:58 +0000 Subject: [PATCH] Remove dead returns. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90083 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/Unix/Path.inc | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/System/Unix/Path.inc b/lib/System/Unix/Path.inc index ec2ba7cd9c3..ff1497a5c6d 100644 --- a/lib/System/Unix/Path.inc +++ b/lib/System/Unix/Path.inc @@ -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(); }