]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r363013:
authorDimitry Andric <dim@FreeBSD.org>
Sat, 11 Jul 2020 09:43:16 +0000 (09:43 +0000)
committerDimitry Andric <dim@FreeBSD.org>
Sat, 11 Jul 2020 09:43:16 +0000 (09:43 +0000)
commitb062c5a832ae4f072389987d8da3d89bb2c0e2f2
tree791562be1512230c68b4c8e99f15624c57d49790
parentb4ce50a1f3ce366ab251b3107219b7fb80e6b823
MFC r363013:

Merge commit 065fc1eafe7c from llvm git (by Richard Smith):

  PR45521: Preserve the value kind when performing a standard
  conversion sequence on a glvalue expression.

  If the sequence is supposed to perform an lvalue-to-rvalue
  conversion, then one will be specified as the first conversion in the
  sequence. Otherwise, one should not be invented.

This should fix clang crashing with "can't implicitly cast lvalue to
rvalue with this cast kind", followed by "UNREACHABLE executed at
/usr/src/contrib/llvm-project/clang/lib/Sema/Sema.cpp:538!", when
building recent versions of Ceph, and the CPAN module SYBER/Date-5.2.0.

Reported by: Willem Jan Withagen <wjw@digiware.nl>, eserte12@yahoo.de
PR: 245530, 247812
contrib/llvm-project/clang/lib/Sema/SemaExprCXX.cpp
contrib/llvm-project/clang/lib/Sema/SemaOverload.cpp