[Mlir-commits] [mlir] [MLIR] Fix crash in AffineMap::replace for zero result maps (PR #80930)

Uday Bondhugula llvmlistbot at llvm.org
Tue Feb 6 19:38:28 PST 2024


bondhugula wrote:

The other option here is to leave the current behavior of asserting in `inferFromExprsList` on empty lists (which isn't btw specified/documented on the API doc comment) and instead update AffineMap::replace to handle the zero result case with an early return, and document the non-empty expectation on `inferFromExprsList`. But I felt removing those asserts was more systematic and complete.

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


More information about the Mlir-commits mailing list