Refactor miri pointer checks #62081
Centralize bounds, alignment and NULL checking for memory accesses in one function:
All operations on the
The only other public method to check pointers is
This should be largely no-functional-change, except that ZST accesses to a "true" pointer that is dangling or out-of-bounds are now considered UB. This is to be conservative wrt. whatever LLVM might be doing.
While I am at it, this also removes the assumption that the vtable part of a