freebsd-src/contrib
Dimitry Andric feb5b0c76f Merge commit 158f4f30adb4 from llvm git (by Corentin Jabot):
[Clang] Do not change the type of captured vars when checking lambda constraints

  When checking the constraint of a lambda, we need to respect the constness
  of the call operator when establishing the type of capture variables.

  In D124351, this was done by adding const to the captured variable...
  However, that would change the type of the variable outside of the scope
  of the lambda, which is clearly not the desired outcome.

  Instead, to ensure const-correctness, we need to populate
  a LambdaScopeInfo with the capture variables before checking the
  constraints of a generic lambda.

  There is no changelog as I'd like to tentatively propose we backport
  this change to RC3 as it is a regression introduced in the Clang 17
  cycle.

  Fixes #61267

  Reviewed By: aaron.ballman, #clang-language-wg

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

Merge commit 3ed9e9e3ace6 from llvm git (by Corentin Jabot):

  [Clang] Add captures to the instantiation scope of lambda call operators

  Like concepts checking, a trailing return type of a lambda
  in a dependent context may refer to captures in which case
  they may need to be rebuilt, so the map of local decl
  should include captures.

  This patch reveal a pre-existing issue.
  `this` is always recomputed by TreeTransform.

  `*this` (like all captures) only become `const`
  after the parameter list.

  However, if try to recompute the value of `this` (in a parameter)
  during template instantiation while determining the type of the call operator,
  we will determine  it to be const (unless the lambda is mutable).

  There is no good way to know at that point that we are in a parameter
  or not, the easiest/best solution is to transform the type of this.

  Note that doing so break a handful of HLSL tests.
  So this is a prototype at this point.

  Fixes #65067
  Fixes #63675

  Reviewed By: erichkeane

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

This fixes 'Assertion failed: (isa<LabelDecl>(D) && "declaration not
instantiated in this scope"), function findInstantiationOf' error when
building databases/mongodb44.

PR:		273753
MFC after:	1 month
2023-12-08 18:36:06 +01:00
..
arm-optimized-routines Update the Arm Optimized Routine library to v23.01 2023-06-09 17:56:02 +01:00
atf
bc contrib/bc: upgrade to version 6.6.0 2023-05-25 17:55:31 +02:00
bearssl Merge commit 'd84e570b54961e8874bbd8de25635eb96be0977e' 2023-02-20 22:13:27 -08:00
bionic-x86_64-string Import bionic's x86_64 optimized string routines 2022-08-16 13:27:11 -04:00
blocklist Track upstream project rename in contrib/blocklistd 2023-11-03 16:53:04 -04:00
bmake Merge bmake-20230909 2023-09-17 18:09:37 -07:00
bsddialog bsddialog: import version 1.0 2023-10-04 18:12:03 +02:00
bsnmp bsnmp: make single bit bitfields unsigned to avoid clang 16 warning 2023-04-17 18:26:03 +02:00
byacc byacc: Adjust expected test output to match our patches. 2023-02-22 20:05:02 +01:00
bzip2 bzip2: remove locally added __FBSDID 2023-11-27 16:47:22 +00:00
capsicum-test capsicum: add tests for copy_file_range 2023-09-28 15:48:32 +02:00
com_err
cortex-strings
dialog
diff gnu diff3: apply patch to committed src, rather than at build time 2022-11-13 21:33:40 -05:00
dma dma: use OpenSSL 1.1 init API 2023-05-11 19:03:34 -04:00
ee ee: remove locally added __FBSDID 2023-11-27 16:47:26 +00:00
elftoolchain readelf: fix -wR option, memory leaks, and -wf minor bug 2023-03-06 12:51:23 -05:00
expat MFV: expat 2.5.0 2022-11-17 22:15:00 -08:00
file (upstream) PR/386: Add newlines for consitency 2 2023-10-08 21:52:53 -07:00
flex
gdtoa
googletest Import GoogleTest 1.14.0 2023-08-10 02:32:33 -07:00
hyperv/tools hyperv/kvp: Remove set but unused variables. 2023-06-27 10:19:32 -07:00
jemalloc jemalloc: Define SWAP_RESERVE_* if not provided by the system headers 2022-09-17 01:35:35 +03:00
kyua
ldns ldns: Remove a set but unused variable. 2023-06-27 10:19:32 -07:00
ldns-host
less MFV: less v643. 2023-08-13 00:13:31 -07:00
lib9p lib9p: Remove set but unused sockets[] array from l9p_start_server. 2023-06-20 09:28:59 -07:00
libarchive Tweaks to libarchive's upgrade instructions 2023-10-20 12:12:02 -03:00
libbegemot
libc-pwcache Remove __FBSDID from netbsd libc sources 2023-11-21 00:21:11 +00:00
libc-vis Remove __FBSDID from netbsd libc sources 2023-11-21 00:21:11 +00:00
libcbor libcbor: update to 0.10.2 2023-04-21 16:10:03 -04:00
libcxxrt Merge libcxxrt commit 5d8a15823a103bbc27f1bfdcf2b5aa008fab57dd 2022-08-08 12:50:48 -04:00
libdivsufsort
libedit libedit: update to snapshot 2023-01-06 2023-02-06 14:25:06 +01:00
libevent libevent: Import libevent 2.1.12 2023-11-14 17:13:02 -08:00
libexecinfo
libfido2 libfido2: update to 1.13.0 2023-09-19 13:06:12 -04:00
libpcap libpcap: Update to 1.10.4 2023-05-05 10:56:10 -03:00
libucl
libxo Merge commit '7087c8de43b0d5d27c52da6ba2ba4957b7e336ff' into new_merge 2023-01-30 00:04:21 -05:00
llvm-project Merge commit 158f4f30adb4 from llvm git (by Corentin Jabot): 2023-12-08 18:36:06 +01:00
lua Merge LUA 5.4.6 2023-07-15 11:31:04 -06:00
lutok
mandoc mandoc: workaround lack of macro parsing in list -width 2022-05-31 10:06:46 -05:00
mknod
mtree
ncurses
netbsd-tests Add expected failure for tmpfs atime test failing on FreeBSD 2023-10-22 10:58:52 -04:00
netcat netcat: add --crlf to convert LF into CRLF 2023-08-28 10:58:17 +00:00
ntp ntp: Fix build 2023-06-06 06:27:05 -07:00
nvi nvi: import version 2.2.1 2023-09-27 18:14:45 +02:00
ofed Cleanup pthread locks in ofed RDMA verbs 2023-09-19 09:10:42 -05:00
one-true-awk Revert "awk: Merge upstream 2nd Edition Awk Book" 2023-11-15 15:28:05 -07:00
openbsm Remove my middle name. 2023-08-17 15:08:30 +02:00
opencsd/decoder Import OpenCSD v.1.4.0. 2023-03-27 17:03:16 +01:00
openpam openpam: Migrate from COMPAT_32BIT to generic COMPAT_libcompat 2023-07-09 18:48:17 +01:00
openresolv
pam_modules/pam_passwdqc
pf pf: Remove __FBSDID() macro use 2023-11-21 00:21:11 +00:00
pjdfstest
pnglite
pnpinfo pnpinfo: remove locally added __FBSDID 2023-11-27 16:47:30 +00:00
processor-trace
sendmail Note upgrade to sendmail 8.17.1 2023-02-01 02:22:39 +00:00
smbfs smbfs: remove locally added __FBSDID 2023-11-27 16:47:33 +00:00
spleen contrib/spleen: update to Spleen 2.0.0 2023-06-08 10:42:25 -04:00
sqlite3 sqlite3: Vendor import of sqlite3 3.44.0 2023-11-13 08:50:36 -08:00
tcp_wrappers tcp_wrappers: recognize IPv6 addresses/prefixes 2023-07-20 14:56:20 -07:00
tcpdump tcpdump: decode pfsync packets on network interfaces 2023-11-08 16:12:14 +01:00
tcsh
telnet telnet: remove locally added __FBSDID 2023-11-27 16:47:37 +00:00
terminus
tnftp
traceroute traceroute: Remove stray __P 2023-11-17 21:05:00 -07:00
tzcode Update tzcode to 2023c. 2023-04-26 11:46:21 +02:00
tzdata contrib/tzdata: import tzdata 2023c 2023-03-29 09:09:54 +08:00
unbound Unbound: Remove backup file brought in from upstream 2023-11-13 16:46:12 -08:00
unifdef unifdef: Handle redefined symbols correctly. 2023-09-06 17:11:13 +00:00
unvis
vis
wireguard-tools Merge commit '93bf91b4012a28610672d2266366dfa0a663b70f' into HEAD 2022-11-04 22:46:21 -05:00
wpa wpa: ctrl_iface set sendbuf size 2023-12-02 20:37:36 +00:00
xz MFV: xz 5.4.5 2023-11-25 17:02:59 -08:00