freebsd-nq/contrib/llvm-project
Dimitry Andric c1a540709a Apply upstream lldb fix for unhandled Error causing abort
Merge commit 5033f0793fe6 from llvm git (by Dimitry Andric):

  [lldb] Avoid unhandled Error in TypeSystemMap::GetTypeSystemForLanguage

  When assertions are turned off, the `llvm::Error` value created at the
  start of this function is overwritten using the move-assignment
  operator, but the success value is never checked. Whenever a TypeSystem
  cannot be found or created, this can lead to lldb core dumping with:

      Program aborted due to an unhandled Error:
      Error value was Success. (Note: Success values must still be checked prior to being destroyed).

  Fix this by not creating a `llvm::Error` value in advance, and directly
  returning the result of `llvm::make_error` instead, whenever an error is
  encountered.

  See also: <https://bugs.freebsd.org/253881> and
  <https://bugs.freebsd.org/257829>.

  Reviewed By: teemperor

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

Reported by:	dmgk, ota@j.email.ne.jp
PR:		253881, 257829
MFC after:	3 days
2021-08-16 18:57:24 +02:00
..
clang Merge llvm-project 12.0.1 release 2021-07-16 18:29:42 +02:00
compiler-rt Merge llvm-project 12.0.1 release 2021-07-16 18:29:42 +02:00
libcxx Merge llvm-project 12.0.1 release 2021-07-16 18:29:42 +02:00
libunwind Revert libunwind change to fix backtrace segfault on aarch64 2021-07-03 00:35:49 +02:00
lld Apply upstream lld fix for compressed input sections on BE targets 2021-08-07 13:14:11 +02:00
lldb Apply upstream lldb fix for unhandled Error causing abort 2021-08-16 18:57:24 +02:00
llvm Merge llvm-project 12.0.1 release 2021-07-16 18:29:42 +02:00
openmp Merge llvm-project 12.0.0 release 2021-06-13 22:01:15 +02:00
FREEBSD-Xlist Update contrib/llvm-project/FREEBSD-Xlist for llvmorg-11.0.1-rc2. 2021-01-03 14:21:54 +01:00