[mlir][MemRef] fix error message in ReinterpretCastOp::verify
authorFelix Schneider <fx.schn@gmail.com>
Tue, 11 Apr 2023 15:36:41 +0000 (17:36 +0200)
committerAlex Zinenko <zinenko@google.com>
Tue, 11 Apr 2023 15:38:07 +0000 (17:38 +0200)
commit2a0c0849747425b570561e6bd9869843131a880d
treebc12d8aa6563c38067cec8c4072d5b1d9d9bed8d
parentdc26a3d9cdddd2909e35e0adbe76810ec23d788e
[mlir][MemRef] fix error message in ReinterpretCastOp::verify

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.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D148009
mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
mlir/test/Dialect/MemRef/invalid.mlir