This fixes a crash when no elements are parsed, but the type expects at least one.
Fixes PR#47763
Paths
| Differential D92982
[mlir][Parser] Fix crash in DenseElementsAttr parser when no elements are parsed ClosedPublic Authored by rriddle on Dec 9 2020, 4:43 PM.
Details Summary This fixes a crash when no elements are parsed, but the type expects at least one. Fixes PR#47763
Diff Detail
Unit TestsFailed
Event TimelineHerald added subscribers: teijeong, rdzhabarov, tatianashp and 13 others. · View Herald TranscriptDec 9 2020, 4:43 PM This revision is now accepted and ready to land.Dec 9 2020, 9:30 PM This revision was landed with ongoing or failed builds.Dec 10 2020, 12:49 PM Closed by commit rG75eca67c1c4b: [mlir][Parser] Fix crash in DenseElementsAttr parser when no elements are parsed (authored by rriddle). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 310716 mlir/lib/Parser/AttributeParser.cpp
mlir/test/IR/invalid.mlir
|