[Mlir-commits] [mlir] [mlir] Fix correct memset range in `OwningMemRef` zero-init (PR #158200)

Ryan Kim llvmlistbot at llvm.org
Fri Sep 12 01:57:00 PDT 2025


chokobole wrote:

> Is this an AI that detected this and wrote this PR? The way the description is phrased looks kind of verbose in the way AI agents tends to be.
> 
> Can you add a test please?

1. I used an AI to tidy up the PR description. However, the core fix is based on an issue I encountered during testing with `OwnedMemRef` which resulted in a `free(): invalid pointer` error.

2. I agree a test would be valuable. However, a proper unit test would require a complex memory simulation to prevent overwrites, which seems overly complicated for this situation.

https://github.com/llvm/llvm-project/pull/158200


More information about the Mlir-commits mailing list