On Tue Nov 7 11:01:38 2023 +0000, Giovanni Mascellani wrote:
So, if the target type is a pointer the cast op doesn't have any meaning? The source type can be anything? Or is there some validation that could be done here?
Nothing is emitted to the IR here, and the pointer value will show up later as a source operand, where it will be validated in the correct context.