diff options
author | Longsheng Mou <longshengmou@gmail.com> | 2024-09-30 09:16:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-30 09:16:55 +0800 |
commit | 129ade21bdad5f09206b773cd0591a9616ad0ca4 (patch) | |
tree | 3df6e1bb8b34035c001cf76fcefe24b8c5c04248 /llvm/lib/IR/AutoUpgrade.cpp | |
parent | c490d349c56e9b070a6b071d328186815a5b76bd (diff) | |
download | llvm-129ade21bdad5f09206b773cd0591a9616ad0ca4.zip llvm-129ade21bdad5f09206b773cd0591a9616ad0ca4.tar.gz llvm-129ade21bdad5f09206b773cd0591a9616ad0ca4.tar.bz2 |
[mlir][sparse] Replace `getSparseTensorType` with `tryGetSparseTensorType` (#109435)
This PR fixes a bug in `SparseTensorDimOpRewriter` when `tensor.dim` has
an unranked tensor type. To prevent crashes, we now use
`tryGetSparseTensorType` instead of `getSparseTensorType`. Fixes
#107807.
Diffstat (limited to 'llvm/lib/IR/AutoUpgrade.cpp')
0 files changed, 0 insertions, 0 deletions