[llvm] b462cdf - Avoid duplicate exe_path definition on recent FreeBSD
Ed Maste via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 18 05:51:31 PST 2019
Author: Ed Maste
Date: 2019-11-18T08:51:22-05:00
New Revision: b462cdff05b82071190e8bfd1078a2c76933b19b
URL: https://github.com/llvm/llvm-project/commit/b462cdff05b82071190e8bfd1078a2c76933b19b
DIFF: https://github.com/llvm/llvm-project/commit/b462cdff05b82071190e8bfd1078a2c76933b19b.diff
LOG: Avoid duplicate exe_path definition on recent FreeBSD
Added:
Modified:
llvm/lib/Support/Unix/Path.inc
Removed:
################################################################################
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index 51b564f9a185..2a03dc682bce 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
More information about the llvm-commits
mailing list