We currently, incorrectly, assume that a range always has at least
one element when building a contiguous range. This commit adds
a proper empty check to avoid crashing.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D110457
[mlir:ElementsAttr] Avoid crash on empty contiguous ranges ClosedPublic Authored by rriddle on Sep 24 2021, 4:45 PM.
Details Summary We currently, incorrectly, assume that a range always has at least
Diff Detail
Event TimelineHerald added subscribers: wenzhicui, wrengr, Chia-hungDuan and 19 others. · View Herald TranscriptSep 24 2021, 4:45 PM This revision is now accepted and ready to land.Sep 24 2021, 4:48 PM This revision was landed with ongoing or failed builds.Sep 24 2021, 4:57 PM Closed by commit rGef764eeeb99a: [mlir:ElementsAttr] Avoid crash on empty contiguous ranges (authored by rriddle). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 374995 mlir/include/mlir/IR/BuiltinAttributeInterfaces.td
mlir/test/IR/elements-attr-interface.mlir
|