This is an archive of the discontinued LLVM Phabricator instance.

[mlir] verify against nullptr payload in transform dialect
ClosedPublic

Authored by ftynse on Jan 6 2023, 9:34 AM.

Details

Summary

When establishing the correspondence between transform values and
payload operations or parameters, check that the latter are non-null and
report errors. This was previously allowed for exotic cases of partially
successfull transformations with "apply each" trait, but was dangerous.
The "apply each" implementation was reworked to remove the need for this
functionality, so this can now be hardned to avoid null pointer
dereferences.

Diff Detail

Event Timeline

ftynse created this revision.Jan 6 2023, 9:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 6 2023, 9:34 AM
ftynse requested review of this revision.Jan 6 2023, 9:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 6 2023, 9:34 AM
This revision is now accepted and ready to land.Jan 6 2023, 9:38 AM
This revision was landed with ongoing or failed builds.Jan 9 2023, 5:03 AM
This revision was automatically updated to reflect the committed changes.