The crash issue occurs in the TestBuiltinAttributeInterface when a
dense attribute with non-integer elements is provided. The tryGetValues
function should first check conditions, including casting T from the
element's type and verifying whether the elements are empty or not. This
fix resolves the crash issue reported in:
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/test/IR/elements-attr-interface.mlir | ||
---|---|---|
29–34 | I'm not too familiar with this interface, but this change doesn't seem right to me. Successfully returning an empty range seems like the desired behaviour. |
mlir/test/IR/elements-attr-interface.mlir | ||
---|---|---|
29–34 | Thanks for your review! I'll address the empty range behavior by checking for attribute casting on empty elements. |
I'm not too familiar with this interface, but this change doesn't seem right to me. Successfully returning an empty range seems like the desired behaviour.