This is an archive of the discontinued LLVM Phabricator instance.

[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

Event Timeline

rriddle created this revision.Dec 9 2020, 4:43 PM
rriddle requested review of this revision.Dec 9 2020, 4:43 PM
mehdi_amini accepted this revision.Dec 9 2020, 9:30 PM
This revision is now accepted and ready to land.Dec 9 2020, 9:30 PM
tberghammer accepted this revision.Dec 10 2020, 1:59 AM
This revision was landed with ongoing or failed builds.Dec 10 2020, 12:49 PM
This revision was automatically updated to reflect the committed changes.