LLVM/project 1c043afclang/lib/AST ASTContext.cpp, clang/test/SemaTemplate GH183075.cpp

[clang] Backport: allow canonicalizing assumed template names

Assumed template names are part of error recovery and encode just a
declaration name, making them always canonical. This patch allows
them to be canonicalized, which is trivial.

Backport from #183222

Fixes #183075
DeltaFile
+13-0clang/test/SemaTemplate/GH183075.cpp
+5-2clang/lib/AST/ASTContext.cpp
+18-22 files

LLVM/project c8fa3f4clang/lib/Sema SemaCXXScopeSpec.cpp, clang/test/SemaCXX GH167120.cpp

[clang] Backport: NestedNameSpecifier typo correction fix

This stops typo correction from considering template parameters
as candidates for a NestedNameSpecifier when it has a prefix itself.

I think this is better than the alternative of accepting these candidates,
but otherwise droping the prefix, because it seems more far-fetched that
someone would actually try to refer to a template parameter this way.

Since this regression was never released, there are no release notes.

Backport from #181239

Fixes #167120
DeltaFile
+11-4clang/lib/Sema/SemaCXXScopeSpec.cpp
+5-0clang/test/SemaCXX/GH167120.cpp
+16-42 files

LLVM/project a25ca60clang/include/clang/Lex LiteralSupport.h, clang/lib/Lex LiteralSupport.cpp

move code into CopyStringFragment
DeltaFile
+29-72clang/lib/Lex/LiteralSupport.cpp
+2-1clang/include/clang/Lex/LiteralSupport.h
+31-732 files

LLVM/project 5e5548fclang/lib/CodeGen CGExpr.cpp, clang/test/CodeGenCXX cxx2a-consteval.cpp template-cxx20.cpp

[clang] Backport: CodeGen: fix ConstantExpr LValue emission

This fixes a regression introduced in #161029, though not the fault of that
patch, only by incidental changes regarding the preservation of constant expression
nodes.

The LValue emission of ConstantExpr was doing strange things with regards to
what type corresponds to the result of the constant expression, which are not
justified by any tests or in the discussions of the relevant patches.

See
https://github.com/llvm/llvm-project/commit/09669e6c5fa1e8db9c1091cc264640fb0377d6b6
and https://github.com/llvm/llvm-project/pull/78041 and
https://github.com/llvm/llvm-project/commit/51e4aa87e05c45bebf9658a47980b1934c88be31

This simplifies it to just use the expression type.

Since this regression was never released, there are no release notes.


    [3 lines not shown]
DeltaFile
+25-2clang/test/CodeGenCXX/cxx2a-consteval.cpp
+2-12clang/lib/CodeGen/CGExpr.cpp
+12-1clang/test/CodeGenCXX/template-cxx20.cpp
+39-153 files

FreeBSD/src d37214dusr.sbin/freebsd-update freebsd-update.sh

freebsd-update: Error for -b basedir without UNAME_r set

freebsd-update sets the currently running release from UNAME -r, which
can be overridden via the --currently-running commandline option (or by
setting UNAME_r in the environment).  This may be invalid if -b is used
to specify a basedir other than /, so error out if -b is specified
without setting the currently running version.

PR:             283229
Reviewed by:    cperciva
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48016

(cherry picked from commit 097458ac665db732cc91a22279da4cc14f694da2)
DeltaFile
+4-0usr.sbin/freebsd-update/freebsd-update.sh
+4-01 files

LLVM/project 86996aaclang/lib/Sema SemaOverload.cpp, clang/test/SemaTemplate temp_arg_nontype_cxx11.cpp

[clang] Backport: stop error recovery in SFINAE for narrowing in converted constant expressions

A narrowing conversion in a converted constant expression should produce an
invalid expression so that [temp.deduct.general]p7 is satisfied, by stopping
substitution at this point.

Fixes #167709
DeltaFile
+10-1clang/test/SemaTemplate/temp_arg_nontype_cxx11.cpp
+8-0clang/lib/Sema/SemaOverload.cpp
+18-12 files

LLVM/project 2a338d8clang/include/clang/Basic DiagnosticDriverKinds.td, clang/include/clang/Options Options.td

Revert "[Metal][HLSL] Add support for dumping reflection (#181258)"

This reverts commit 3d469665a286cac528c2ef2fb018032d80843716.
DeltaFile
+0-22clang/lib/Driver/ToolChains/HLSL.cpp
+0-8clang/test/Driver/HLSL/fre-errors.hlsl
+0-8clang/test/Driver/HLSL/metal-converter.hlsl
+0-2clang/include/clang/Options/Options.td
+0-2clang/include/clang/Basic/DiagnosticDriverKinds.td
+0-425 files

LLVM/project fff2f0bllvm/lib/Target/AMDGPU GCNHazardRecognizer.cpp, llvm/test/CodeGen/AMDGPU wmma-coexecution-valu-hazards.mir

[AMDGPU] Handle GFX1250 hazards between WMMA and VOPD (#183573)

Hazards between WMMA and VALU were handled in #149865 but this only
worked for regular VOP* VALU encodings, not for VOPD.

Fixes: #183546
DeltaFile
+30-0llvm/test/CodeGen/AMDGPU/wmma-coexecution-valu-hazards.mir
+11-14llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
+41-142 files

LLVM/project c5ddaa2clang/lib/Sema SemaTemplateDeduction.cpp, clang/test/SemaTemplate temp_arg_template_p0522.cpp

[clang] create local instantiation scope for matching template template parameters

This fixes a bug where a partial substitution from the enclosing scope
is used to prepopulate an unrelated template argument deduction.

Backport from #183219

Fixes #181166
DeltaFile
+7-0clang/test/SemaTemplate/temp_arg_template_p0522.cpp
+2-0clang/lib/Sema/SemaTemplateDeduction.cpp
+9-02 files

LLVM/project c357171clang/docs AddressSanitizer.rst

reword

Created using spr 1.3.7
DeltaFile
+3-3clang/docs/AddressSanitizer.rst
+3-31 files

FreeBSD/src 1f2f5ebsys/x86/conf NOTES

asmc(4): pull 32-bit support for the driver

The asmc(4) driver should work for 32-bit Intel-based Macs, in theory, if
the model details were added to the detection list. That being said,
32-bit Intel Macs were only released and available to the general public
for 8 months [1], so the value in maintaining i386 support in the driver is
reduced due to limited hardware access.

Remove 32-bit support for the driver officially to make it clear its use is
not supported.

This should fix building `NOTES.i386` by proxy as well.

Relnotes:       yes
MFC after:      2 weeks
Fixes:          f224591746b ("Add ASMC_DEBUG make option")
Fixes:          8342d9f7b5f ("asmc(4): Stop building it on i386, as...")
Differential Revision:  https://reviews.freebsd.org/D55544
DeltaFile
+0-2sys/x86/conf/NOTES
+0-21 files

LLVM/project fc153b1clang/lib/StaticAnalyzer/Checkers/WebKit PtrTypesSemantics.cpp, clang/test/Analysis/Checkers/WebKit nodelete-annotation.cpp

[alpha.webkit.NoDeleteChecker] Check if each field is trivially destructive (#183711)

This PR fixes the bug that NoDeleteChecker and trivial function analysis
were not detecting any non-trivial destruction of class member
variables.

When evaluating a delete expression or calling a destructor directly for
triviality, check if each field in the class and its base classes is
trivially destructive.
DeltaFile
+150-2clang/test/Analysis/Checkers/WebKit/nodelete-annotation.cpp
+46-0clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
+196-22 files

OpenBSD/ports hslYmgumail/mozilla-thunderbird Makefile

   MFC mail/mozilla-thunderbird: add a workaround for #2006630
VersionDeltaFile
1.513.2.8+6-0mail/mozilla-thunderbird/Makefile
+6-01 files

FreeNAS/freenas 88418easrc/middlewared/middlewared/plugins/filesystem_ acl.py utils.py, src/middlewared/middlewared/utils/filesystem acl.py

Address review
DeltaFile
+26-17src/middlewared/middlewared/plugins/filesystem_/acl.py
+6-5src/middlewared/middlewared/plugins/filesystem_/utils.py
+8-1src/middlewared/middlewared/utils/filesystem/acl.py
+40-233 files

LLVM/project ca04a70libc/shared/math bf16subf128.h, libc/src/__support/math bf16subf128.h CMakeLists.txt

[libc][math] Refactor bf16sub family to header-only (#182115)

Refactors the bf16sub math family to be header-only.

Closes https://github.com/llvm/llvm-project/issues/182114

Target Functions:
  - bf16sub
  - bf16subf
  - bf16subf128
DeltaFile
+46-0utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+33-0libc/src/__support/math/bf16subf128.h
+31-0libc/src/__support/math/CMakeLists.txt
+28-0libc/shared/math/bf16subf128.h
+27-0libc/src/__support/math/bf16subf.h
+27-0libc/src/__support/math/bf16sub.h
+192-09 files not shown
+255-3015 files

Illumos/gate b1fc123usr/src/uts/common/inet/ip conn_opt.c ip_output.c

17605 !dohwcksum should also disable LSO
Reviewed by: Kyle Simpson <kyle at oxide.computer>
Reviewed by: Andy Fiddaman <illumos at fiddaman.net>
Approved by: Dan McDonald <danmcd at Edgecast.io>
DeltaFile
+5-4usr/src/uts/common/inet/ip/conn_opt.c
+6-3usr/src/uts/common/inet/ip/ip_output.c
+11-72 files

LLVM/project 6f612cfclang/lib/Sema SemaOverload.cpp, clang/test/SemaTemplate temp_arg_nontype_cxx11.cpp

[clang] stop error recovery in SFINAE for narrowing in converted constant expressions (#183614)

A narrowing conversion in a converted constant expression should produce
an invalid expression so that [temp.deduct.general]p7 is satisfied, by
stopping substitution at this point.

This regression was introduced in #164703, and this will be backported
to clang-22, so no release notes.

Fixes #167709
DeltaFile
+10-1clang/test/SemaTemplate/temp_arg_nontype_cxx11.cpp
+8-0clang/lib/Sema/SemaOverload.cpp
+18-12 files

LLVM/project d1f4f94flang/include/flang/Semantics expression.h, flang/lib/Semantics expression.cpp

[flang] Fix explanatory messages for generic resolution error (#183565)

The compiler emits messages to explain why each of a generic procedure's
specific procedures is not a match for a given set of actual arguments.
In the case of specific procedures with PASS arguments in derived type
procedure bindings or procedure components, these explanatory messages
are often bogus, because the re-analysis didn't adjust the actual
arguments to account for the PASS argument. Fix.
DeltaFile
+24-0flang/test/Semantics/bug2295.f90
+16-6flang/lib/Semantics/expression.cpp
+2-1flang/include/flang/Semantics/expression.h
+42-73 files

LLVM/project 4f05592clang/test/Driver sycl-offload-jit-xarch.cpp

[Driver][SYCL] Add tests for -Xarch_<arch> option forwarding to SYCL JIT compilation. (#178025)

This change adds test coverage to verify that options passed via
`-Xarch_<arch> <option>` are correctly forwarded to SYCL JIT
compilations.
DeltaFile
+13-0clang/test/Driver/sycl-offload-jit-xarch.cpp
+13-01 files

LLVM/project 3d889c4clang/lib/Format TokenAnnotator.cpp, clang/unittests/Format FormatTest.cpp

[clang-format] Fix SpaceBeforeParens with explicit template instantiations (#183183)

This fixes explicit template instantiated functions not having spaces
added/removed based on the value of `SpaceBeforeParens`.

Attribution Note - I have been authorized to contribute this change on
behalf of my company: ArenaNet LLC
DeltaFile
+10-9clang/lib/Format/TokenAnnotator.cpp
+4-0clang/unittests/Format/FormatTest.cpp
+14-92 files

LLVM/project 6456216llvm/include/llvm/Transforms/Utils MemoryTaggingSupport.h

cleanup

Created using spr 1.3.7
DeltaFile
+0-4llvm/include/llvm/Transforms/Utils/MemoryTaggingSupport.h
+0-41 files

LLVM/project 6dd1dc8llvm/lib/Transforms/Utils MemoryTaggingSupport.cpp, llvm/test/CodeGen/AArch64 stack-tagging.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+295-0llvm/test/Instrumentation/HWAddressSanitizer/use-after-scope.ll
+30-0llvm/test/CodeGen/AArch64/stack-tagging.ll
+11-16llvm/lib/Transforms/Utils/MemoryTaggingSupport.cpp
+336-163 files

LLVM/project ae6bbfcllvm/test/CodeGen/AArch64 stack-tagging.ll, llvm/test/Instrumentation/HWAddressSanitizer use-after-scope.ll

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+328-0llvm/test/Instrumentation/HWAddressSanitizer/use-after-scope.ll
+29-0llvm/test/CodeGen/AArch64/stack-tagging.ll
+357-02 files

OpenBSD/ports cpTgb9jmail/mozilla-thunderbird Makefile

   mail/mozilla-thunderbird: add a workaround for #2006630

   reported by naddy@
VersionDeltaFile
1.521+6-0mail/mozilla-thunderbird/Makefile
+6-01 files

LLVM/project df5bee6clang/lib/CIR/Dialect/Transforms FlattenCFG.cpp, clang/test/CIR/Transforms flatten-try-op.cir flatten-cleanup-scope-nyi.cir

[CIR] Implement TryOp flattening (#183591)

This updates the FlattenCFG pass to add flattening for cir::TryOp in
cases where the TryOp contains catch or unwind handlers.

Substantial amounts of this PR were created using agentic AI tools, but
I have carefully reviewed the code, comments, and tests and made changes
as needed. I've left intermediate commits in the initial PR if you'd
like to see the progression.
DeltaFile
+737-0clang/test/CIR/Transforms/flatten-try-op.cir
+287-160clang/lib/CIR/Dialect/Transforms/FlattenCFG.cpp
+0-90clang/test/CIR/Transforms/flatten-cleanup-scope-nyi.cir
+1,024-2503 files

LLVM/project 3be515cllvm/test/Instrumentation/HWAddressSanitizer use-after-scope.ll

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+328-0llvm/test/Instrumentation/HWAddressSanitizer/use-after-scope.ll
+328-01 files

LLVM/project 967d960llvm/test/CodeGen/AArch64 stack-tagging.ll, llvm/test/Instrumentation/HWAddressSanitizer use-after-scope.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+328-0llvm/test/Instrumentation/HWAddressSanitizer/use-after-scope.ll
+29-0llvm/test/CodeGen/AArch64/stack-tagging.ll
+357-02 files

LLVM/project acdb508llvm/test/Instrumentation/HWAddressSanitizer use-after-scope.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+328-0llvm/test/Instrumentation/HWAddressSanitizer/use-after-scope.ll
+328-01 files

LLVM/project 8ce2b9cclang/include/clang/AST DeclCXX.h, clang/lib/AST ItaniumMangle.cpp ASTImporter.cpp

[Clang][ItaniumMangle] Fix recursive mangling for lambda init-captures (#182667)

[Clang][ItaniumMangle] Fix recursive mangling for lambda init-captures

Mangle computation for lambda signatures can recurse when a call
operator type
references an init-capture (for example via decltype(init-capture)). In
these
cases, mangling can re-enter the init-capture declaration and cycle back
through
operator() mangling.

Make lambda context publication explicit and independent from numbering
state,
then use that context uniformly during mangling:
* Publish lambda `ContextDecl` in `Sema::handleLambdaNumbering()` before
numbering, so dependent type mangling can resolve the lambda context
without
  recursing through the call operator.

    [19 lines not shown]
DeltaFile
+66-0clang/test/CodeGenCXX/mangle-lambdas.cpp
+32-6clang/lib/AST/ItaniumMangle.cpp
+16-8clang/lib/Sema/SemaLambda.cpp
+7-6clang/include/clang/AST/DeclCXX.h
+6-4clang/lib/AST/ASTImporter.cpp
+5-1clang/lib/AST/DeclCXX.cpp
+132-256 files

FreeBSD/ports 9857a46www/oauth2-proxy distinfo Makefile

www/oauth2-proxy: Update to 7.14.3

Security:       10319b08-f050-4beb-95e3-fe025cdafd25
MFH:            2026Q1
(cherry picked from commit 7c93c58d914eb3e10e935d19f459e0b0cb11f03e)
DeltaFile
+5-5www/oauth2-proxy/distinfo
+1-2www/oauth2-proxy/Makefile
+6-72 files