[Mlir-commits] [mlir] [mlir][amd] fix LLVM::InsertValueOp::create failure to disambiguate (PR #150605)

Maksim Levental llvmlistbot at llvm.org
Fri Jul 25 06:27:44 PDT 2025


makslevental wrote:

> A bit confused why you only had to change the first one, but if it works it works.

It's because the ADL failure is due to `0 == nullptr` and both `ArrayRef`, `DenseI64ArrayAttr` are "reference" types. For the rest of the callsites the "pos" arg is non-zero and so ADL works and correctly selects the `ArrayRef<int64_t> position` overload.

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


More information about the Mlir-commits mailing list