FreeBSD/ports acbb573 — databases/postgresql19-server Makefile distinfo

databases/postgresql19-*: Update to 19.0

First production release of the 19 series.

This release introduces the REPACK (CONCURRENTLY) command so users can
optimize tables for their current workload without disruption to ongoing
operations. PostgreSQL 19 gives users better control over plan stability
and query performance with the new pg_plan_advice extension. Developers
will find many delightful features in this release, from support for
"read-your-writes" consistency on standbys to "get or create" behavior
that saves a network round trip.

Upgrading from 18 or earlier requires a dump/restore or pg_upgrade.

Release notes:  https://www.postgresql.org/docs/19/release-19.html

(cherry picked from commit 5fa58ac8856ff5bbf8d6b65a0769cdba11e336ed)
DeltaFile
+3-3databases/postgresql19-server/distinfo
+1-1databases/postgresql19-server/Makefile
+4-42 files

FreeBSD/ports 08bd79b — databases/postgresql14-server pkg-plist-server, databases/postgresql15-server pkg-plist-client pkg-plist-server

databases/postgresql1[45678]-*: Update to latest patch releases

Update to 18.7, 17.12, 16.16, 15.20 and 14.25, fixing 53 CVEs and
a large number of other bugs.

A dump/restore is not required, but some indexes may be corrupt and
should be rebuilt with REINDEX after updating:

- btree indexes on bpchar columns declared without a length
  (CHAR(n) is not affected)
- GiST indexes using gist_trgm_ops (contrib/pg_trgm)
- GIN indexes and TOAST-table indexes, if corruption is suspected

For 17 and 18, existing incremental backups should not be trusted.
Take a new full backup after updating and base subsequent
incremental backups on that.

Release notes:  https://www.postgresql.org/about/news/postgresql-187-1712-1616-1520-1425-and-19-rc-2-released-3442/
Security:       1a672925-de93-11f1-9824-6cc21735f730

    [2 lines not shown]
DeltaFile
+21-20databases/postgresql19-server/pkg-plist-server
+30-11databases/postgresql15-server/pkg-plist-server
+19-4databases/postgresql14-server/pkg-plist-server
+14-4databases/postgresql17-server/pkg-plist-server
+10-0databases/postgresql18-server/pkg-plist-server
+7-0databases/postgresql15-server/pkg-plist-client
+101-3918 files not shown
+141-6724 files

FreeBSD/ports 7b38c41 — databases/postgresql19-server pkg-plist-client Makefile

databases/postgresql19-server: Update to 19RC1

The PostgreSQL Global Development Group announces that the first release
candidate of PostgreSQL 19 is now available for download. As a release
candidate, PostgreSQL 19 RC 1 will be mostly identical to the initial
release of PostgreSQL 19, though some more fixes may be applied prior to
the general availability of PostgreSQL 19.

To upgrade to PostgreSQL 19 RC 1 from earlier versions of PostgreSQL,
you will need to use a major version upgrade strategy, e.g. pg_upgrade
or pg_dump / pg_restore. For more information, please visit the
documentation section on upgrading:

https://www.postgresql.org/about/news/postgresql-19-rc-1-released-3409/

(cherry picked from commit 0ee810cf51b3110956e0ac1076a2ebb6f7de320f)
DeltaFile
+11-4databases/postgresql19-server/pkg-plist-server
+3-3databases/postgresql19-server/distinfo
+1-1databases/postgresql19-server/Makefile
+1-0databases/postgresql19-server/pkg-plist-client
+16-84 files

LLVM/project e1475f9 — mlir/lib/Dialect/Shape/IR Shape.cpp, mlir/test/Dialect/Shape canonicalize.mlir

[mlir][shape] Don't crash on poison operands in folders (#226671)

Several shape folders used an unchecked `llvm::cast` on their folded
operands, assuming any non-null attribute was a `DenseIntElementsAttr`
(or `IntegerAttr`). A `ub.poison` operand folds to `#ub.poison`, so
these casts asserted.

The folders now check attribute types before accessing their values and
propagate poison where appropriate.

- `ConcatOp`, `NumElementsOp`, `SplitAtOp` and `ToExtentTensorOp` fold
to poison when an operand is poison.
- `CstrBroadcastableOp` (and its `hasAtMostSingleNonScalar` helper) no
longer crashes; poison is treated like a non-constant operand there.

`NumElementsOp`, `SplitAtOp` and `ToExtentTensorOp` weren't in the
issue; I found them while fixing the reported ones.

Part of #226067 (the affine and scf cases are not addressed here).

Assisted-by: Claude
DeltaFile
+130-0mlir/test/Dialect/Shape/canonicalize.mlir
+44-20mlir/lib/Dialect/Shape/IR/Shape.cpp
+174-202 files

LLVM/project 9083e63 — mlir/lib/Dialect/Affine/Analysis AffineAnalysis.cpp, mlir/test/Dialect/Affine parallelize.mlir

[Affine] Parallelize loops with MemoryEffects::Free ops. (#172388)

It seems that operations with just MemoryEffects::Free should not
prevent parallelization.
DeltaFile
+42-2mlir/test/Dialect/Affine/parallelize.mlir
+18-1mlir/lib/Dialect/Affine/Analysis/AffineAnalysis.cpp
+60-32 files

Illumos/gate 0871158 — usr/src/cmd/make/bin read.cc

18761 make: targets with '%' in their name are rebuilt on every run
Reviewed by: Andy Fiddaman <illumos at fiddaman.net>
Reviewed by: Bill Sommerfeld <sommerfeld at hamachi.org>
Approved by: Gordon Ross <gordon.w.ross at gmail.com>
DeltaFile
+11-2usr/src/cmd/make/bin/read.cc
+11-21 files

FreeNAS/freenas 3258ec7 — src/middlewared/middlewared/plugins filesystem.py, src/middlewared/middlewared/plugins/filesystem_ acl.py

NAS-145324 / 27.1.0 / Check the resolved path in filesystem permission changes (by bmeagherix) (#20271)

The path checks of filesystem.chown, filesystem.setperm and
filesystem.setacl compared filesystem.stat's realpath, which keeps ".."
components for anything that is not itself a symlink, and matched
prefixes without a component boundary. Check os.path.realpath() of the
path instead, and compare whole path components.

Also fix the schema name in the "Must be an absolute path" error.

Original PR: https://github.com/truenas/middleware/pull/20267

Co-authored-by: bmeagherix <118192357+bmeagherix at users.noreply.github.com>
DeltaFile
+7-5src/middlewared/middlewared/plugins/filesystem_/acl.py
+11-0tests/api2/test_190_filesystem.py
+1-1src/middlewared/middlewared/plugins/filesystem.py
+19-63 files

FreeNAS/freenas babdfd9 — src/middlewared/middlewared/plugins/audit audit.py, tests/api2 test_audit_basic.py

NAS-145323 / 27.1.0 / Only accept a report file name in audit.download_report (by bmeagherix) (#20273)

audit.export creates each report directly in the user's report
directory, so report_name must be a single file name.


Original PR: https://github.com/truenas/middleware/pull/20266

Co-authored-by: bmeagherix <118192357+bmeagherix at users.noreply.github.com>
DeltaFile
+23-9src/middlewared/middlewared/plugins/audit/audit.py
+8-0tests/api2/test_audit_basic.py
+31-92 files

LLVM/project 2145340 — llvm/lib/Transforms/InstCombine InstCombineCompares.cpp

[InstCombine] Rewrite foldICmpCommutative to switch on the op0 opcode (#243249)

foldICmpCommutative is called twice for every icmp, once for each operand
order, and tries a sequence of folds that each require Op0 to be a particular
operator: a GEP, a select, a min/max or abs call, an add, an and/or, a
division, or a shift. Each fold only finds out after running its own pattern
match.

Turn the sequence into a switch on Op0's opcode. Every fold in this function
is keyed on that opcode and the keys are disjoint, so the switch only skips
folds that cannot apply. No fold is added or removed, and folds for the same
opcode keep their original order. `Operator::getOpcode` is used so that
constant expressions dispatch the same way PatternMatch treats them.

The switch also makes the dispatch structure explicit, so new folds added here
are naturally placed under the opcode they require. The opcode guards in
visitICmpInst and its other helpers from the first version of this PR will be
evaluated separately.


    [7 lines not shown]
DeltaFile
+82-67llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+82-671 files

LLVM/project 49d455d — lldb/include/lldb/ValueObject ValueObject.h, lldb/source/API SBValue.cpp

[lldb] Remove ConstString from ValueImpl (#244064)
DeltaFile
+5-4lldb/source/ValueObject/ValueObject.cpp
+2-2lldb/source/API/SBValue.cpp
+2-2lldb/include/lldb/ValueObject/ValueObject.h
+9-83 files

LLVM/project 25b9e1a — llvm/test/Transforms/LoopVectorize interleaved-accesses.ll, llvm/test/Transforms/LoopVectorize/AArch64 replicated-load-used-as-address-via-blends.ll

[LV] Add tests for interleave group and replicated load addresses (NFC). (#244355)

Add tests for
* the cost of address computations of interleaved store and load groups,
 * abs of the IV used as interleave group address,
 * replicated loads used as address via blends,
 * a forced scalar address computation VPlan narrows to a single scalar.
DeltaFile
+421-0llvm/test/Transforms/LoopVectorize/X86/replicated-load-used-as-address-via-blends.ll
+243-0llvm/test/Transforms/LoopVectorize/X86/interleave-group-address-cost.ll
+109-0llvm/test/Transforms/LoopVectorize/AArch64/replicated-load-used-as-address-via-blends.ll
+72-0llvm/test/Transforms/LoopVectorize/interleaved-accesses.ll
+60-0llvm/test/Transforms/LoopVectorize/X86/cost-model.ll
+12-0llvm/test/Transforms/LoopVectorize/X86/uniform-phi.ll
+917-06 files

LLVM/project 24d30c2 — llvm/lib/Transforms/InstCombine InstCombineSimplifyDemanded.cpp, llvm/test/Transforms/InstCombine simplify-demanded-fpclass-copysign.ll

[InstCombine] Fix infinite loop when simplifying copysign (#243432)

Only report a change when the copysign sign operand actually changes.
Otherwise, demanded FP-class simplification through a loop PHI can keep
revisiting the same instructions without changing the IR.

Assisted-by: OpenAI Codex
DeltaFile
+119-0llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-copysign.ll
+8-4llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+127-42 files

LLVM/project db0e20f — llvm/bindings/ocaml/llvm llvm.mli llvm.ml, llvm/test/Bindings/OCaml core.ml

[OCaml] Add FMaximumNum and FMinimumNum to AtomicRMWBinOp.t (#240894)

`LLVMAtomicRMWBinOp` gained `LLVMAtomicRMWBinOpFMaximumNum` and
`LLVMAtomicRMWBinOpFMinimumNum`, but the OCaml variant
`AtomicRMWBinOp.t` stops at `FMinimum`, so OCaml code cannot build these
operations. `build_atomicrmw` passes the constructor index straight to
`LLVMBuildAtomicRMW`, so the two lists have to stay in the same order.
This adds the two constructors at the end of the variant, in the C
order.

Assisted-by: Mistral Vibe
DeltaFile
+11-0llvm/test/Bindings/OCaml/core.ml
+2-0llvm/bindings/ocaml/llvm/llvm.mli
+2-0llvm/bindings/ocaml/llvm/llvm.ml
+15-03 files

LLVM/project a70249a — flang/lib/Semantics resolve-names.cpp, flang/test/Semantics/OpenMP declare-reduction-modfile.f90 metadirective-declare-reduction-ignored.f90

[flang][OpenMP] Do not register DECLARE_REDUCTIONs in METADIRECTIVEs

Since declarative METADIRECTIVEs are not handled yet, they shouldn't
produce any side-effects. Specifically DECLARE_REDUCTION directives
should not actually declare anything.

This PR eliminates the actual declaration of the reduction-identifier
associated with a DECLARE_REDUCTION in a METADIRECTIVE.
DeltaFile
+40-12flang/lib/Semantics/resolve-names.cpp
+16-0flang/test/Semantics/OpenMP/metadirective-declare-reduction-ignored.f90
+0-1flang/test/Semantics/OpenMP/declare-reduction-modfile.f90
+56-133 files

FreeBSD/src d851c68 — usr.sbin/bhyve/riscv fdt.c

bhyve/riscv: fix PCIe FDT interrupt-map entry stride

In bhyve arm64, each PCIe interrupt-map entry spans 10 cells because the
ARM GIC specifies #interrupt-cells = 3. On RISC-V, the APLIC uses
#interrupt-cells = 2, so each entry spans only 9 cells.

When the PCIe FDT code was originally adapted from arm64, the property
allocation size and cell assignments were reduced to 9 cells per entry,
but the loop multiplier retained the 10-cell stride. This caused the
interrupt-map array to be packed incorrectly with gaps, breaking PCI
interrupt routing in guest operating systems and overflowing the
allocation by 16 cells.

Correct the loop stride to 9 cells so the interrupt map is properly
formed.

Reviewed by:    jrtc27
Fixes:          7ab1a32cd43c ("bhyve/riscv: Initial import")
MFC after:      3 days

    [3 lines not shown]
DeltaFile
+9-9usr.sbin/bhyve/riscv/fdt.c
+9-91 files

LLVM/project 2f5dfa2 — flang/lib/Lower/OpenMP OpenMP.cpp, flang/lib/Semantics check-omp-variant.cpp canonicalize-omp.cpp

[flang][OpenMP] Handle declarative METADIRECTIVES more carefully

Diagnose declarative METADIRECTIVEs with executable variants as errors.
A METADIRECTIVE is considered executable if it contains at least one
executable variant. Mixing declarative and executable variants is not
supported.

There are several things that can appear in either the specification part
or in the execution part in a Fortran program unit. METADIRECTIVEs are
one example, and there is already code that tries to canonicalize then,
i.e. move them into the execution part if they are considered executable
and are at the end of the specification part.
In fact, the entire tail of the specification part is moved into the
execution part if it could be considered executable.

Since OmpMetadirectiveDirective is an allowed member of a specification
part, the parser will preferentially insert METADIRECTIVEs into the
specification part even if they are executable according to the above
definition.

    [7 lines not shown]
DeltaFile
+107-16flang/lib/Semantics/canonicalize-omp.cpp
+75-19flang/lib/Semantics/check-omp-variant.cpp
+6-73flang/test/Lower/OpenMP/Todo/metadirective-loop-intervening-statement.f90
+2-24flang/lib/Lower/OpenMP/OpenMP.cpp
+16-9flang/test/Semantics/OpenMP/metadirective-loop-nest.f90
+25-0flang/test/Semantics/OpenMP/metadirective-loop-intervening-statement.f90
+231-1415 files not shown
+272-14311 files

FreeBSD/src a24fc8c — usr.sbin/bhyve/riscv fdt.c

Revert "bhyve/riscv: fix PCIe FDT interrupt-map entry stride"

Thanks to past me's foolish choice not to alter the commit message such
that none of its lines start with a #, Git got very confused the
cherry-pick and included its own commented-out instructions. Reverting
to re-land with a fixed body.

This is a direct commit to stable/15.

This reverts commit 69f76efd01a72fe0d6cb68442d2c15d3174a268f.
DeltaFile
+9-9usr.sbin/bhyve/riscv/fdt.c
+9-91 files

LLVM/project 74ea47b — clang/lib/Format FormatToken.cpp ContinuationIndenter.cpp, clang/unittests/Format TokenAnnotatorTest.cpp FormatTest.cpp

[clang-format] Break and align items after trailing-comma __VA_OPT__ (#240902)

When `__VA_OPT__(..., )` (or `__VA_OPT__(,)`) ends with a top-level
comma inside an enum, braced list, parameter list, or expression (for
example when migrating unnamed variadic macros from the non-standard `,
##__VA_ARGS__` extension to C++20 `__VA_OPT__(__VA_ARGS__, )`), its
closing `)` acts as an item separator. Previously, `clang-format` did
not recognize the trailing comma inside `__VA_OPT__`, keeping the
following item on the same line (or continuation-indenting it after
`)`).

Classify the closing `)` of a C/C++ `__VA_OPT__` ending in a top-level
non-operator comma as `TT_TrailingCommaVaOptRParen` and treat it as a
comma separator across token annotation, parameter counting and column
layout, bin-packing, continuation indentation, trailing-comma handling,
and expression grouping.

Before:


    [21 lines not shown]
DeltaFile
+103-0clang/unittests/Format/FormatTest.cpp
+90-0clang/unittests/Format/TokenAnnotatorTest.cpp
+59-22clang/lib/Format/TokenAnnotator.cpp
+15-2clang/lib/Format/UnwrappedLineParser.cpp
+11-5clang/lib/Format/ContinuationIndenter.cpp
+4-0clang/lib/Format/FormatToken.cpp
+282-292 files not shown
+287-308 files

NetBSD/pkgsrc-wip b4b87c2 — dma Makefile

dma: use byacc and fix unprivileged spool setup
DeltaFile
+19-9dma/Makefile
+19-91 files

LLVM/project c14928b — libc/src/__support str_to_float.h, libc/src/stdlib CMakeLists.txt strtof128.h

[libc] Add strtof128 stdlib entrypoint. (#243955)

Enable for aarch64, riscv, and x86_64, using the emulated float128 type
in the implementation and helper tests.

The logic for string to float128 conversion is already in
__support/str_to_float.h for the case when long double is quad
precision. It just needed some template updates to enable for float128.

Assisted-by: Automated tooling, human reviewed.
DeltaFile
+115-23libc/src/__support/str_to_float.h
+123-0libc/test/src/stdlib/strtof128_test.cpp
+86-0libc/test/src/__support/str_to_float128_test.cpp
+34-0libc/src/stdlib/strtof128.cpp
+32-0libc/src/stdlib/strtof128.h
+15-0libc/src/stdlib/CMakeLists.txt
+405-238 files not shown
+446-2314 files

LLVM/project 762a46e — llvm/lib/Transforms/Vectorize VPlanHelpers.h

[VPlan] Remove unused VPLane::getKnownLane (NFC) (#244312)

The last callers were removed on November 19, 2026 in commit
39cc2f5728e49e5c8df0acd80fd17985862df9d3.

Assisted-by: Antigravity
DeltaFile
+0-8llvm/lib/Transforms/Vectorize/VPlanHelpers.h
+0-81 files

LLVM/project 3b4125a — llvm/lib/Target/AMDGPU AMDGPUTargetMachine.h AMDGPUTargetMachine.cpp

[AMDGPU] Remove unused getGPUName and getFeatureString (NFC) (#244311)

The last callers were removed on November 18, 2026 in commit
95f23a1ae335e929987a99521ab7e3e08da54ba4.

Assisted-by: Antigravity
DeltaFile
+0-12llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
+0-3llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h
+0-152 files

LLVM/project 574ab12 — llvm/include/llvm/IR RuntimeLibcalls.h

[IR] Remove unused RuntimeLibcallsInfo::darwinHasSinCosStret (NFC) (#244307)

The last caller was removed on November 18, 2026 in commit
3490218b05171319625693a1c0003dbb793a0e76.

Assisted-by: Antigravity
DeltaFile
+0-17llvm/include/llvm/IR/RuntimeLibcalls.h
+0-171 files

LLVM/project 0775d2c — llvm/utils/TableGen/Common InfoByHwMode.h

[TableGen] Remove unused InfoByHwMode::makeSimple (NFC) (#244306)

The last caller was removed on November 6, 2026 in commit
7d2b3c904c95f7173b677f6d04eb8fff0c8932b7.

Assisted-by: Antigravity
DeltaFile
+0-6llvm/utils/TableGen/Common/InfoByHwMode.h
+0-61 files

FreeBSD/src 69f76ef — usr.sbin/bhyve/riscv fdt.c

bhyve/riscv: fix PCIe FDT interrupt-map entry stride

In bhyve arm64, each PCIe interrupt-map entry spans 10 cells because the
ARM GIC specifies #interrupt-cells = 3. On RISC-V, the APLIC uses
#interrupt-cells = 2, so each entry spans only 9 cells.

When the PCIe FDT code was originally adapted from arm64, the property
allocation size and cell assignments were reduced to 9 cells per entry,
but the loop multiplier retained the 10-cell stride. This caused the
interrupt-map array to be packed incorrectly with gaps, breaking PCI
interrupt routing in guest operating systems and overflowing the
allocation by 16 cells.

Correct the loop stride to 9 cells so the interrupt map is properly
formed.

Reviewed by:    jrtc27
Fixes:          7ab1a32cd43c ("bhyve/riscv: Initial import")
MFC after:      3 days

    [25 lines not shown]
DeltaFile
+9-9usr.sbin/bhyve/riscv/fdt.c
+9-91 files

FreeBSD/ports f6ab5db — devel/websvn Makefile distinfo

devel/websvn: Update to 2.9.1

Changelog:      https://github.com/websvnphp/websvn/releases/tag/2.9.1
DeltaFile
+3-3devel/websvn/distinfo
+1-1devel/websvn/Makefile
+4-42 files

LLVM/project 663f3fb — clang/lib/Driver/ToolChains MSVC.cpp, llvm/include/llvm/Support VirtualFileSystem.h

[llvm][vfs] Add Status::isExecutable() (#244339)

Add a query to vfs::Status that returns whether any of the execute
permissions is set, so that clients checking whether a file found
through a VFS is executable don't have to test the permission bits by
hand. Update MSVC toolchain to use the new API.

Unlike sys::fs::can_execute, it does not check whether the current
process is allowed to execute the file.
DeltaFile
+27-0llvm/unittests/Support/VirtualFileSystemTest.cpp
+5-0llvm/include/llvm/Support/VirtualFileSystem.h
+1-3clang/lib/Driver/ToolChains/MSVC.cpp
+4-0llvm/lib/Support/VirtualFileSystem.cpp
+37-34 files

OpenZFS/src 2159144 — tests/zfs-tests/tests/functional/slog slog_replay_volume_split_boundary.ksh slog_replay_volume_split_write.ksh

ZTS: slog_replay_volume_split_*: write with stride_dd (#19917)

slog_replay_volume_split_boundary and slog_replay_volume_split_write
fail on every ubuntu26 CI run since its kernel moved to 7.0.0-43:
the replayed data matches, but no split write was logged or merged.

The tests make one 512K or 768K O_DIRECT write(2) to the zvol with
dd, so that it reaches the zvol as one request and is logged as one
TX_WRITE record split over several log blocks.  Ubuntu 26.04's dd is
uutils dd, which reads into a buffer that is not 512-byte aligned.
Kernel 7.0.0-38 let that O_DIRECT write through to the zvol as one
bio; 7.0.0-43 rejects it with EINVAL, as it already did for other
block devices with the default 511 dma_alignment.  uutils dd then
clears O_DIRECT and writes again through the page cache, so the zvol
gets 128 or 192 4K bios, each logged as its own small record.

Write with stride_dd -D instead: its buffer is page-aligned, and it
fails rather than retry without O_DIRECT.


    [2 lines not shown]
DeltaFile
+7-2tests/zfs-tests/tests/functional/slog/slog_replay_volume_split_write.ksh
+2-2tests/zfs-tests/tests/functional/slog/slog_replay_volume_split_boundary.ksh
+9-42 files

LLVM/project 07d600b — lldb/include/lldb/Interpreter Property.h, lldb/source/Commands CommandObjectSettings.cpp

[lldb] Add a Deprecated attribute for settings, to discourage use (#243732)

I want to change all of the lldb-cache-index settings that exist today,
reorganizing them to reflect how I'm growing the DataFileCache system.
Users may have the old settings in their .lldbinit files, and I don't
want those to result in errors. I will mark the old settings Deprecated,
and if they are set, have them set the correct new setting names.

The goal of a deprecated setting is to make it undiscoverable by
accident -- `settings list`, `settings show` will not show the name
unless the full path is given, unless `--include-deprecated` is added.
When it is shown, the setting name will be followed by a deprecation
tag, "(deprecated)". If a user sets a setting with `settings set`, a
warning will be printed that this setting is deprecated - so their
.lldbinit file will give a warning each time it is sourced, but it will
continue to work.

I think the most important thing to consider with this PR are the UI of
all the different ways settings are accessed and viewed. This PR adds a

    [128 lines not shown]
DeltaFile
+122-0lldb/test/Shell/Settings/TestDeprecatedSettings.test
+64-3lldb/source/Commands/CommandObjectSettings.cpp
+39-14lldb/source/Interpreter/OptionValueProperties.cpp
+38-8lldb/source/Interpreter/Property.cpp
+30-1lldb/include/lldb/Interpreter/Property.h
+24-2lldb/source/Core/UserSettingsController.cpp
+317-2814 files not shown
+436-3520 files

LLVM/project b34cbaf — mlir/test/CAPI pdl.c

[MLIR][PDL][Test] Fix memory leaks in testNullPDLValueArg (#244344)

https://github.com/llvm/llvm-project/pull/228456 added
`testNullPDLValueArg` in `mlir/test/CAPI/pdl.c`, which fails under
LeakSanitizer on the ASan buildbot.

`mlirRewritePatternSetFromPDLPatternModule` and
`mlirFreezeRewritePattern` move the contents out of their input handles
without freeing the heap-allocated containers themselves, and
`FrozenRewritePatternSet` leaves the lowered `OwningOpRef<ModuleOp>`
inside the `RewritePatternSet`. Passing the `MlirRewritePatternSet` as
an unnamed temporary and omitting the destroy calls therefore leaked
`MlirPDLPatternModule` and `MlirRewritePatternSet`.

This PR destroies both `pdlModule` and the intermediate `patternSet`
after freezing. This is the same pattern in `mlir/test/CAPI/rewrite.c`.

Assisted-by: Gemini
DeltaFile
+5-2mlir/test/CAPI/pdl.c
+5-21 files