This is an archive of the discontinued LLVM Phabricator instance.

[mlir] fix a crash if the dialect is missing a data layout interface
ClosedPublic

Authored by ftynse on Jun 9 2021, 1:23 AM.

Details

Summary

The top-level verifier of data layout specifications delegates verification of
entries with identifier keys to the dialect of the identifier prefix. This flow
was missing a check whether the dialect actually implements the relevant
interface.

Diff Detail

Event Timeline

ftynse created this revision.Jun 9 2021, 1:23 AM
ftynse requested review of this revision.Jun 9 2021, 1:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2021, 1:23 AM
gysit accepted this revision.Jun 9 2021, 1:37 AM

Looks good to me!

This revision is now accepted and ready to land.Jun 9 2021, 1:37 AM