This is an archive of the discontinued LLVM Phabricator instance.

[mlir][MemRef] fix error message in ReinterpretCastOp::verify
ClosedPublic

Authored by ubfx on Apr 11 2023, 5:26 AM.

Details

Summary

The error message that is displayed when the offset in the MemRefType of
the Op's result is unexpected was the wrong way around, mixing up
expected and actual offset.

Diff Detail

Event Timeline

ubfx created this revision.Apr 11 2023, 5:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 11 2023, 5:26 AM
ubfx requested review of this revision.Apr 11 2023, 5:26 AM
ubfx updated this revision to Diff 512420.Apr 11 2023, 6:19 AM

Also fix the tests

ftynse accepted this revision.Apr 11 2023, 8:22 AM
This revision is now accepted and ready to land.Apr 11 2023, 8:22 AM
ubfx added a comment.Apr 11 2023, 8:34 AM

Thank you, @ftynse
Could you push the patch when you get a chance since I don't have permissions?

This revision was automatically updated to reflect the committed changes.