summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2019-11-18 08:49:55 -0500
committerEd Maste <emaste@freebsd.org>2019-11-18 08:51:22 -0500
commitb462cdff05b82071190e8bfd1078a2c76933b19b (patch)
treeb39b5893cc79bfdcb8419178c3456809a2be5ce9 /llvm/lib/Support
parent2b8115b10b03013b9f8ae0aa56b0cd6a6a6dd4fd (diff)
downloadbcm5719-llvm-b462cdff05b82071190e8bfd1078a2c76933b19b.tar.gz
bcm5719-llvm-b462cdff05b82071190e8bfd1078a2c76933b19b.zip
Avoid duplicate exe_path definition on recent FreeBSD
Diffstat (limited to 'llvm/lib/Support')
-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