summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Support/Unix/Path.inc1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index 51b564f9a18..2a03dc682bc 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -198,7 +198,6 @@ std::string getMainExecutable(const char *argv0, void *MainAddr) {
// to the file.
char exe_path[PATH_MAX];
#if __FreeBSD_version >= 1300057
- char exe_path[PATH_MAX];
if (elf_aux_info(AT_EXECPATH, exe_path, sizeof(exe_path)) == 0)
return exe_path;
#else
OpenPOWER on IntegriCloud