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
..
2021-06-25 16:02:40 -07:00
2021-03-01 16:01:44 +01:00
2020-03-29 02:40:03 +00:00
2021-07-17 22:20:44 -07:00
2021-01-13 23:56:18 -06:00
2020-10-24 17:08:59 +00:00
2020-07-10 19:58:07 +00:00
2020-06-24 01:51:05 +00:00
2021-08-01 11:31:50 -06:00
2021-02-23 17:47:07 +00:00
2020-06-17 10:42:20 +00:00
2021-01-12 00:56:35 +02:00
2021-05-06 18:01:44 -07:00
2021-05-20 00:12:27 +03:00
2021-01-02 21:03:28 +02:00
2021-08-12 07:13:25 -07:00