]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r360801: Merge commit 21e5e1724b75 from llvm git:
authorEd Maste <emaste@FreeBSD.org>
Sun, 10 May 2020 14:56:25 +0000 (14:56 +0000)
committerEd Maste <emaste@FreeBSD.org>
Sun, 10 May 2020 14:56:25 +0000 (14:56 +0000)
commit383574aca119ef2f52a5a17f210afdf5f5d171bb
treecfeb01bf93ef130461bc58bf5a70ac37d091003c
parent9549bc679661ea52ea35126d3ac95801ab176cb3
MFC r360801: Merge commit 21e5e1724b75 from llvm git:

  getMainExecutable: Fix hand-rolled AT_EXECPATH for older FreeBSD

  Once we hit AT_NULL, we need to bail out of the loop; not just the
  enclosing switch.  This fixes basic usage (e.g. `cc --version`) when
  AT_EXECPATH isn't present on older branches (e.g. under
  emu-user-static, at the moment), where we would previously run off
  the end of ::environ.

  Patch By: kevans

  Reviewed By: arichardson
contrib/llvm-project/llvm/lib/Support/Unix/Path.inc