]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Merge commit 21e5e1724b75 from llvm git:
authorEd Maste <emaste@FreeBSD.org>
Thu, 7 May 2020 21:18:37 +0000 (21:18 +0000)
committerEd Maste <emaste@FreeBSD.org>
Thu, 7 May 2020 21:18:37 +0000 (21:18 +0000)
commitc7d9dfe810d250db7ce58b4f27fe901dd9715901
tree596163bdd74aa28453e57eb2aab7160addd44acb
parentb1ddcbc62c6566c8759177c7c3d1ff0ad6b09449
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

  Differential Revision:  https://reviews.llvm.org/D79239

MFC after: 3 days
contrib/llvm-project/llvm/lib/Support/Unix/Path.inc