llvm-project
359b4753 - [mlir][memref] Remove unsafe `getType()` from ReshapeOp (#205105)

Commit
5 days ago
[mlir][memref] Remove unsafe `getType()` from ReshapeOp (#205105) Remove the unsafe `getType` method from ReshapeOp. It unconditionally casts the result to `MemRefType`, but `memref.reshape` may return an `UnrankedMemRefType`, leading to an assertion failure. The redundant build method is also removed alongside this change. Fixes #203812.
Author
Parents
Loading