]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Merge commit bbb8a0df7367 from llvm-project (by Shafik Yaghmour):
authorDimitry Andric <dim@FreeBSD.org>
Wed, 20 Mar 2024 22:39:06 +0000 (23:39 +0100)
committerDimitry Andric <dim@FreeBSD.org>
Wed, 20 Mar 2024 22:39:11 +0000 (23:39 +0100)
commitbcd401b5a39c6186bb1fe450286299f2a481244c
tree0af90a394e331e739d40a0ad5f4c4ed0b47bf022
parent9978c6289d621ac9edc95acb4e0f527a62a49b03
Merge commit bbb8a0df7367 from llvm-project (by Shafik Yaghmour):

  [Clang] Fix ResolveConstructorOverload to not select a conversion function if we are going use copy elision

  ResolveConstructorOverload needs to check properly if we are going to use copy
  elision we can't use a conversion function.

  This fixes:

  https://github.com/llvm/llvm-project/issues/39319
  https://github.com/llvm/llvm-project/issues/60182
  https://github.com/llvm/llvm-project/issues/62157
  https://github.com/llvm/llvm-project/issues/64885
  https://github.com/llvm/llvm-project/issues/65568

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

This should fix 'Assertion failed: (isa<To>(Val) && "cast<Ty>() argument
of incompatible type!")' errors when building devel/boost-libs,
specifically libs/url/src/segments_view.cpp.

Bump __FreeBSD_version so this fix can easily be detected from
devel/boost-all/compiled.mk.

PR: 273335
contrib/llvm-project/clang/lib/Sema/SemaInit.cpp
contrib/llvm-project/clang/lib/Sema/SemaTemplateInstantiate.cpp
sys/sys/param.h