[MLIR][Bytecode] Ensure `dataIt` is aligned coming out of `EncodingReader::alignTo`.
authorbzcheeseman <aman.lachapelle@gmail.com>
Fri, 11 Nov 2022 19:22:06 +0000 (11:22 -0800)
committerbzcheeseman <aman.lachapelle@gmail.com>
Sun, 13 Nov 2022 17:27:23 +0000 (09:27 -0800)
commitae461d8b99e63e26726ce3047f00b78180d427d8
tree48dd38742edbb47ff453624c7c0a39568287b5f5
parentd9bff27024a28dc8bd5c52001fc3e2050be3d0a6
[MLIR][Bytecode] Ensure `dataIt` is aligned coming out of `EncodingReader::alignTo`.

This addresses the TODO in the code previously and checks that the address of `dataIt` is properly aligned to the requested alignment.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D137855
mlir/lib/Bytecode/Reader/BytecodeReader.cpp