[Mem2Reg] Check that load type matches alloca type
Alloca promotion can only deal with cases where the load/store types match the alloca type (it explicitly does not support bitcasted load/stores). With opaque pointers this is no longer enforced through the pointer type, so add an explicit check.
Loading
Please register or sign in to comment